added commandline option --new-syntax
This commit is contained in:
parent
1699ed73b1
commit
80bec3a048
3 changed files with 8 additions and 3 deletions
|
@ -486,7 +486,11 @@ game_controller::game_controller(int argc, char** argv) :
|
|||
} else if(val == "--new-widgets") {
|
||||
// This is a hidden option to enable the new widget toolkit.
|
||||
gui2::new_widgets = true;
|
||||
} else if(val == "--clock") {
|
||||
}
|
||||
else if (val == "--new-syntax") {
|
||||
game_config::new_syntax = true;
|
||||
}
|
||||
else if(val == "--clock") {
|
||||
gui2::show_debug_clock_button = true;
|
||||
} else if(val == "-e" || val == "--editor") {
|
||||
jump_to_editor_ = true;
|
||||
|
@ -1820,6 +1824,7 @@ static int process_command_args(int argc, char** argv) {
|
|||
<< " --side<number>=value selects a faction of the current era for this\n"
|
||||
<< " side by id.\n"
|
||||
<< " --turns=value sets the number of turns. The default is \"50\".\n"
|
||||
<< " --new-syntax enables the new campaign syntax parsing.\n"
|
||||
<< " --no-delay runs the game without any delays.\n"
|
||||
<< " --nocache disables caching of game data.\n"
|
||||
<< " --nomusic runs the game without music.\n"
|
||||
|
|
|
@ -51,7 +51,7 @@ namespace game_config
|
|||
const std::string revision = VERSION;
|
||||
#endif
|
||||
std::string wesnoth_program_dir;
|
||||
bool debug = false, editor = false, ignore_replay_errors = false, mp_debug = false, exit_at_end = false, no_delay = false, small_gui = false, disable_autosave = false;
|
||||
bool debug = false, editor = false, ignore_replay_errors = false, mp_debug = false, exit_at_end = false, new_syntax = false, no_delay = false, small_gui = false, disable_autosave = false;
|
||||
|
||||
int cache_compression_level = 6;
|
||||
|
||||
|
|
|
@ -50,7 +50,7 @@ namespace game_config
|
|||
/** Default percentage gold carried over to the next scenario. */
|
||||
extern const int gold_carryover_percentage;
|
||||
|
||||
extern bool debug, editor, ignore_replay_errors, mp_debug, exit_at_end, no_delay, small_gui, disable_autosave;
|
||||
extern bool debug, editor, ignore_replay_errors, mp_debug, exit_at_end, new_syntax, no_delay, small_gui, disable_autosave;
|
||||
|
||||
extern int cache_compression_level;
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue