1
1
forked from 0ad/0ad
0ad/source/ps/scripting
wraitii 3bcf360107 Mod and mod-mounting cleanup and improvements.
- Non-visual replays now automatically try to load the replay mods. This
removes the annoyance that -mod=public usually had to be passed.
- MountMods is no longer called in InitVfs but later, making it possible
to load the game in one pass & simplifying things considerably.
- Explicitly ignore duplicates when loading mods
- Interface cleanup: failed mods and incompatible mods were redundant,
only incompatible mods is kept.
- Interface cleanup: `AreModsCompatible`becomes
`CheckForIncompatibleMods`, which becomes a private pure function,
simplifying the control flow somewhat.
- Interface cleanup: `CheckAndEnableMods` is just `EnableMods`, which
explicitly updates loaded & incompatible mods.
- `CacheEnabledModVersions` becomes private and is called on behalf of
the user, removing the need to be careful about updating that (fixes my
concern at 44ec2e324e)

Overall, the logic around mounting & enabled mods should be easier to
understand.

Differential Revision: https://code.wildfiregames.com/D3982
This was SVN commit r25474.
2021-05-20 14:36:42 +00:00
..
JSInterface_ConfigDB.cpp Split ScriptRequest in its own header. 2021-05-03 16:07:26 +00:00
JSInterface_ConfigDB.h Refactor all usage of RegisterFunction to ScriptFunction::Register 2021-03-02 20:01:14 +00:00
JSInterface_Console.cpp Refactor all usage of RegisterFunction to ScriptFunction::Register 2021-03-02 20:01:14 +00:00
JSInterface_Console.h Introduce C++ templates replacements for DEFINE_INTERFACE_X and RegisterFunction macros 2021-03-01 20:52:24 +00:00
JSInterface_Debug.cpp Split ScriptRequest in its own header. 2021-05-03 16:07:26 +00:00
JSInterface_Debug.h Refactor all usage of RegisterFunction to ScriptFunction::Register 2021-03-02 20:01:14 +00:00
JSInterface_Game.cpp Removes unused and outdated includes, replaces some includes by forward declarations. 2021-05-15 17:27:01 +00:00
JSInterface_Game.h Refactor all usage of RegisterFunction to ScriptFunction::Register 2021-03-02 20:01:14 +00:00
JSInterface_Hotkey.cpp Split JS conversions from ScriptInterface. 2021-05-13 09:43:33 +00:00
JSInterface_Hotkey.h Introduce C++ templates replacements for DEFINE_INTERFACE_X and RegisterFunction macros 2021-03-01 20:52:24 +00:00
JSInterface_Main.cpp Split off JSON-related function from ScriptInterface, clean up headers. 2021-05-14 10:18:03 +00:00
JSInterface_Main.h Refactor all usage of RegisterFunction to ScriptFunction::Register 2021-03-02 20:01:14 +00:00
JSInterface_Mod.cpp Mod and mod-mounting cleanup and improvements. 2021-05-20 14:36:42 +00:00
JSInterface_Mod.h Introduce C++ templates replacements for DEFINE_INTERFACE_X and RegisterFunction macros 2021-03-01 20:52:24 +00:00
JSInterface_ModIo.cpp Split off Object-related functions from ScriptInterface 2021-05-13 17:23:52 +00:00
JSInterface_ModIo.h Refactor all usage of RegisterFunction to ScriptFunction::Register 2021-03-02 20:01:14 +00:00
JSInterface_SavedGame.cpp Split off Object-related functions from ScriptInterface 2021-05-13 17:23:52 +00:00
JSInterface_SavedGame.h Refactor all usage of RegisterFunction to ScriptFunction::Register 2021-03-02 20:01:14 +00:00
JSInterface_UserReport.cpp Split ScriptRequest in its own header. 2021-05-03 16:07:26 +00:00
JSInterface_UserReport.h Refactor all usage of RegisterFunction to ScriptFunction::Register 2021-03-02 20:01:14 +00:00
JSInterface_VFS.cpp Split off JSON-related function from ScriptInterface, clean up headers. 2021-05-14 10:18:03 +00:00
JSInterface_VFS.h Refactor all usage of RegisterFunction to ScriptFunction::Register 2021-03-02 20:01:14 +00:00
JSInterface_VisualReplay.cpp Split ScriptRequest in its own header. 2021-05-03 16:07:26 +00:00
JSInterface_VisualReplay.h Refactor all usage of RegisterFunction to ScriptFunction::Register 2021-03-02 20:01:14 +00:00