164 Commits

Author SHA1 Message Date
Andrius Silinskas
9708f11ca4 High level functions for loading editor's and game's configs.
Renamed some functions to keep consistency between function names.
load_game_config() is now made private.
2013-06-19 13:59:27 +01:00
Andrius Silinskas
2759b1b141 Clean-up and polish of game_config_manager.*pp.
Added extra brackets.
Changed spaces to tabs.
Deleted unnecessary comments.
Improved consistency in code style.
etc.
2013-06-19 13:59:26 +01:00
Andrius Silinskas
7aeae22ab3 Split load_game_cfg(). 2013-06-19 13:59:26 +01:00
Andrius Silinskas
ced86e667a Move binary paths set up to config manager. 2013-06-19 13:59:26 +01:00
Andrius Silinskas
0096490038 Adjust scope of scoped_preproc_define objects. 2013-06-19 13:59:25 +01:00
Andrius Silinskas
ba3e424340 Add helper class to maintain state of game_config_manager. 2013-06-19 13:59:25 +01:00
Andrius Silinskas
4ae454131c Use only temporary binary_paths_manager in game_controller class.
load_game() function does not need to take care of binary paths since it will always be followed by call to launch_game().
2013-06-19 13:59:25 +01:00
Andrius Silinskas
54e451a1d1 Remove unnecessary auxiliary methods in game_controller.
jump_to_editor parameter now is being passed to game_config_manager class to enable direct calls to init_config() and reload_changed_game_config().
2013-06-19 13:59:25 +01:00
Andrius Silinskas
4ed1ca172a Make use of scoped defines to automatically clear config cache. 2013-06-19 13:59:25 +01:00
Andrius Silinskas
d558bd5c92 Fix wrong/misplaced function calls. Rename a method. 2013-06-19 13:59:24 +01:00
Andrius Silinskas
377e9adc8e Clean-up and polish of game_config_manager game_controller class.
Add extra braces.
Substitute for loop with BOOST_FOREACH.
Update CMakeLists.txt and VC9/wesnoth.vcproj.
Split some long lines.
Change pass by value to pass by reference.
Fix formatting of some comments.
Introduced enums for load_game_cfg().
2013-06-19 13:59:24 +01:00
Andrius Silinskas
2863818293 Move binary paths setup to game_config_manager class. 2013-06-19 13:59:24 +01:00
Andrius Silinskas
9ce42ce9bd Move cache clearing to game_config_manager class. 2013-06-19 13:59:24 +01:00
Andrius Silinskas
cb6119abb0 Move game config loading to new manager class. 2013-06-19 13:59:24 +01:00