mirror of
https://gitea.wildfiregames.com/0ad/0ad.git
synced 2026-09-21 20:06:40 +00:00
Rework Mod into a class.
`Mod` currently modifies 4 global arrays, including some that are 'public'. The logic flow is easier to understand if this becomes a real class with const-correctness and public/private methods. Differential Revision: https://code.wildfiregames.com/D3981 This was SVN commit r25469.
This commit is contained in:
@@ -81,7 +81,7 @@ Status SavedGames::Save(const CStrW& name, const CStrW& description, CSimulation
|
||||
WARN_RETURN(ERR::FAIL);
|
||||
|
||||
JS::RootedValue initAttributes(rq.cx, simulation.GetInitAttributes());
|
||||
JS::RootedValue mods(rq.cx, Mod::GetLoadedModsWithVersions(simulation.GetScriptInterface()));
|
||||
JS::RootedValue mods(rq.cx, g_Mods.GetLoadedModsWithVersions(simulation.GetScriptInterface()));
|
||||
|
||||
JS::RootedValue metadata(rq.cx);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user