Halve starting time for editor when using --editor...

...by skipping the first cache reading/building done for the unused
main menu.
This commit is contained in:
Ali El Gariani 2010-07-25 01:24:56 +00:00
parent 0688a73bfd
commit 4abf909865

View file

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