0ad/source/ps/tests
trompetin17 8e255af185
Fix mods configuration stacking and mergin per mod
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
2025-06-16 11:03:09 -05:00
..
stub_impl_hack.h Revert non-ASCII characters from source and configuration files introduced in 157c6af18e. 2023-12-03 00:30:12 +00:00
test_CLogger.h Converge FileLogger with the other logger replacements 2024-07-06 14:48:44 +00:00
test_ConfigDB.h Fix mods configuration stacking and mergin per mod 2025-06-16 11:03:09 -05:00
test_CStr.h Revert non-ASCII characters from source and configuration files introduced in 157c6af18e. 2023-12-03 00:30:12 +00:00
test_fmt.h Revert non-ASCII characters from source and configuration files introduced in 157c6af18e. 2023-12-03 00:30:12 +00:00
test_Future.h Allow the future request stop from the callback 2024-11-10 20:38:37 +01:00
test_Hashing.h Use vanilla cxxtest functionallity 2024-10-13 18:27:18 +02:00
test_Hotkeys.h De-singletonify CConfigDB, make hooks RAII. 2021-04-27 07:45:40 +00:00
test_Mod.h Fix pathname not matching name incompatible mod detection 2021-10-28 20:33:01 +00:00
test_ModIo.h Add "Invalid signature" reason to modio 2021-12-25 19:31:51 +00:00
test_TaskManager.h Make the TaskManager a automatic livetime object 2024-11-17 18:03:49 +01:00
test_test.h Revert non-ASCII characters from source and configuration files introduced in 157c6af18e. 2023-12-03 00:30:12 +00:00