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:
parent
0688a73bfd
commit
4abf909865
1 changed files with 3 additions and 0 deletions
|
@ -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");
|
||||
|
|
Loading…
Add table
Reference in a new issue