mirror of
https://gitea.wildfiregames.com/0ad/0ad
synced 2026-06-16 05:13:58 -07:00
Previously, the engine only loaded the last mod’s `config/mod.cfg` file, causing earlier mods' configuration settings to be ignored. This broke the expectation of stackable mod behavior and affected features relying on custom config, such as font overrides. This commit updates the mod mounting and configuration process to: - Mount each mod's files before attempting to load its config. - Reload each mod's `config/modname.cfg` via `g_ConfigDB.Reload(CFG_MOD)` after mounting. - Merge configuration keys into the CFG_MOD namespace: - If a key exists, its value is updated. - If not, the key is added. This behavior now aligns with the VFS override system, where later mods take precedence but earlier mods still contribute. Also adds `_test.mods` for validation. Fixes edge cases for mod authors who rely on consistent and layered configuration overrides. Related: #6383, #1810 Fixes: #8060 |
||
|---|---|---|
| .. | ||
| stub_impl_hack.h | ||
| test_CLogger.h | ||
| test_ConfigDB.h | ||
| test_CStr.h | ||
| test_fmt.h | ||
| test_Future.h | ||
| test_Hashing.h | ||
| test_Hotkeys.h | ||
| test_Mod.h | ||
| test_ModIo.h | ||
| test_TaskManager.h | ||
| test_test.h | ||