Author: zaroth
Date: Mon May 23 19:52:27 2011
New Revision: 49636
URL: http://svn.gna.org/viewcvs/wesnoth?rev=49636&view=rev
Log:
added commandline option --new-syntax
Modified:
trunk/src/game.cpp
trunk/src/game_config.cpp
trunk/src/game_config.hpp
Modified: trunk/src/game.cpp
URL:
http://svn.gna.org/viewcvs/wesnoth/trunk/src/game.cpp?rev=49636&r1=49635&r2=49636&view=diff
==============================================================================
--- trunk/src/game.cpp (original)
+++ trunk/src/game.cpp Mon May 23 19:52:27 2011
@@ -486,7 +486,11 @@
} 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 @@
<< " --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"
Modified: trunk/src/game_config.cpp
URL:
http://svn.gna.org/viewcvs/wesnoth/trunk/src/game_config.cpp?rev=49636&r1=49635&r2=49636&view=diff
==============================================================================
--- trunk/src/game_config.cpp (original)
+++ trunk/src/game_config.cpp Mon May 23 19:52:27 2011
@@ -51,7 +51,7 @@
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;
Modified: trunk/src/game_config.hpp
URL:
http://svn.gna.org/viewcvs/wesnoth/trunk/src/game_config.hpp?rev=49636&r1=49635&r2=49636&view=diff
==============================================================================
--- trunk/src/game_config.hpp (original)
+++ trunk/src/game_config.hpp Mon May 23 19:52:27 2011
@@ -50,7 +50,7 @@
/** 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;
_______________________________________________
Wesnoth-commits mailing list
[email protected]
https://mail.gna.org/listinfo/wesnoth-commits