The map editor is started automatically...
...if the game binary used contains "editor" somewhere in its name (useful for symlinks).
This commit is contained in:
parent
78a3731089
commit
3aba2a1a9e
3 changed files with 13 additions and 0 deletions
|
@ -11,6 +11,10 @@ Version 1.5.6+svn:
|
|||
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.
|
||||
|
|
|
@ -16,6 +16,10 @@ Version 1.5.6+svn:
|
|||
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,
|
||||
|
|
|
@ -273,6 +273,11 @@ game_controller::game_controller(int argc, char** argv) :
|
|||
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_]);
|
||||
if(val.empty()) {
|
||||
|
|
Loading…
Add table
Reference in a new issue