mirror of
https://github.com/wesnoth/wesnoth
synced 2025-05-21 08:13:18 +00:00
Load addons based on game_config::no_addons instead of command line.
This is to make sure that we can change the loading of addons at runtime. Can be used to provide a fallback solution.
This commit is contained in:
parent
21484aa5bc
commit
42c9475173
@ -138,7 +138,7 @@ void game_config_manager::load_game_config(FORCE_RELOAD_CONFIG force_reload,
|
||||
config core_terrain_rules;
|
||||
core_terrain_rules.splice_children(game_config_, "terrain_graphics");
|
||||
|
||||
if (!cmdline_opts_.noaddons)
|
||||
if (!game_config::no_addons)
|
||||
load_addons_cfg();
|
||||
|
||||
// If multiplayer campaign is being loaded, [scenario] tags should
|
||||
|
Loading…
x
Reference in New Issue
Block a user