mail[Wesnoth-commits] r33330 - /trunk/src/game.cpp


Others Months | Index by Date | Thread Index
>>   [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Header


Content

Posted by guillaume . melquiond on March 03, 2009 - 23:44:
Author: silene
Date: Tue Mar  3 23:43:59 2009
New Revision: 33330

URL: http://svn.gna.org/viewcvs/wesnoth?rev=33330&view=rev
Log:
Fixed editor so that it can load maps passed as relative path on command line.

Modified:
    trunk/src/game.cpp

Modified: trunk/src/game.cpp
URL: 
http://svn.gna.org/viewcvs/wesnoth/trunk/src/game.cpp?rev=33330&r1=33329&r2=33330&view=diff
==============================================================================
--- trunk/src/game.cpp (original)
+++ trunk/src/game.cpp Tue Mar  3 23:43:59 2009
@@ -90,7 +90,6 @@
 #include <string>
 
 
-#include <boost/algorithm/string/replace.hpp>
 #include <boost/iostreams/copy.hpp>
 #include <boost/iostreams/filtering_streambuf.hpp>
 #include <boost/iostreams/filter/gzip.hpp>
@@ -1193,10 +1192,9 @@
 {
        if(jump_to_editor_){
                jump_to_editor_ = false;
-#ifdef _WIN32
-               boost::replace_all(loaded_game_, "\\", "/");
-#endif
-               if (start_editor(loaded_game_) == 
editor2::EXIT_QUIT_TO_DESKTOP) {
+               if (start_editor(normalize_path(loaded_game_)) ==
+                   editor2::EXIT_QUIT_TO_DESKTOP)
+               {
                        return false;
                }
                loaded_game_ = "";




Related Messages


Powered by MHonArc, Updated Wed Mar 04 00:40:23 2009