Author: shadowmaster
Date: Thu Dec  4 16:21:17 2008
New Revision: 31261

URL: http://svn.gna.org/viewcvs/wesnoth?rev=31261&view=rev
Log:
* The map editor is started automatically if the game binary used
* contains "editor" somewhere in its name (useful for symlinks).

Modified:
    trunk/changelog
    trunk/players_changelog
    trunk/src/game.cpp

Modified: trunk/changelog
URL: 
http://svn.gna.org/viewcvs/wesnoth/trunk/changelog?rev=31261&r1=31260&r2=31261&view=diff
==============================================================================
--- trunk/changelog (original)
+++ trunk/changelog Thu Dec  4 16:21:17 2008
@@ -11,6 +11,10 @@
        Noble Lord, and gave leading animations to Wesfolk Outcast line.
    * Under the Burning Suns:
      * Made Elyssa loyal+quick instead of quick+intelligent.
+ * Editor2:
+   * The map editor is automatically started if the binary file used
+     to start Wesnoth contains "editor" somewhere in its name (useful
+     for symlinks).
  * Graphics:
    * New or updated unit frames: Gryphon Rider, Gryphon Master,
      Revenant.

Modified: trunk/players_changelog
URL: 
http://svn.gna.org/viewcvs/wesnoth/trunk/players_changelog?rev=31261&r1=31260&r2=31261&view=diff
==============================================================================
--- trunk/players_changelog (original)
+++ trunk/players_changelog Thu Dec  4 16:21:17 2008
@@ -16,6 +16,10 @@
         line.
     * Under the Burning Suns:
       * Made Elyssa Loyal and Quick instead of Quick and Intelligent.
+  * Editor2
+    * The map editor is automatically started if the binary file used
+      to start Wesnoth contains "editor" somewhere in its name (useful
+      for symlinks).
 
   * Graphics
     * New or updated unit graphics: Gryphon Rider, Gryphon Master,

Modified: trunk/src/game.cpp
URL: 
http://svn.gna.org/viewcvs/wesnoth/trunk/src/game.cpp?rev=31261&r1=31260&r2=31261&view=diff
==============================================================================
--- trunk/src/game.cpp (original)
+++ trunk/src/game.cpp Thu Dec  4 16:21:17 2008
@@ -272,6 +272,11 @@
                game_config::path = get_cwd() + '/' + game_config::path;
                font_manager_.update_font_path();
        }
+
+#ifndef DISABLE_EDITOR2
+       const std::string app_basename = file_name(argv[0]);
+       jump_to_editor_ = app_basename.find("editor") != std::string::npos;
+#endif
 
        for(arg_ = 1; arg_ != argc_; ++arg_) {
                const std::string val(argv_[arg_]);


_______________________________________________
Wesnoth-commits mailing list
[email protected]
https://mail.gna.org/listinfo/wesnoth-commits

Reply via email to