Update Available mods when installing them

Differential revision: D4211
Since 498f0d420b available mods where cached and not updated when new
where installed.
Fixing above.

This was SVN commit r25850.
This commit is contained in:
Angen
2021-08-17 17:32:10 +00:00
parent 8f5b5670ff
commit 6400a4a0c5
4 changed files with 16 additions and 11 deletions
+1
View File
@@ -866,6 +866,7 @@ bool Init(const CmdLineArgs& args, int flags)
if (flags & INIT_MODS)
{
ScriptInterface modInterface("Engine", "Mod", g_ScriptContext);
g_Mods.UpdateAvailableMods(modInterface);
std::vector<CStr> mods;
if (args.Has("mod"))
mods = args.GetMultiple("mod");