Show the main menu several times faster...

...by skipping terrain rules (useless there)

This also speed up the use of '--load'. Add a new define MAIN_MENU for
this.
This commit is contained in:
Ali El Gariani 2010-07-25 01:24:59 +00:00
parent 4abf909865
commit 3891da6a92
3 changed files with 9 additions and 1 deletions

View file

@ -57,7 +57,9 @@
# Include the terrain-graphics definitions after the campaigns so campaign specific
# terrains work properly.
#ifndef MAIN_MENU
{core/terrain-graphics.cfg}
#endif
[binary_path]
path=data/core

View file

@ -3,12 +3,15 @@
# wmlscope: set export=yes
#ifndef MAIN_MENU
{core/terrain-graphics/}
#endif
{core/macros/}
{core/about.cfg}
{core/help.cfg}
{core/hotkeys.cfg}
{core/terrain.cfg}
{core/terrain-graphics/}
{core/units.cfg}
{core/editor/}

View file

@ -595,6 +595,9 @@ bool game_controller::init_config(const bool force)
if (jump_to_editor_)
cache_.add_define("EDITOR");
if (!multiplayer_mode_ && !test_mode_ && !jump_to_editor_)
cache_.add_define("MAIN_MENU");
load_game_cfg(force);
const config &cfg = game_config().child("game_config");