diff options
Diffstat (limited to 'NorthstarDedicatedTest/scriptmodmenu.cpp')
-rw-r--r-- | NorthstarDedicatedTest/scriptmodmenu.cpp | 20 |
1 files changed, 10 insertions, 10 deletions
diff --git a/NorthstarDedicatedTest/scriptmodmenu.cpp b/NorthstarDedicatedTest/scriptmodmenu.cpp index 75f75d44..df25cd1e 100644 --- a/NorthstarDedicatedTest/scriptmodmenu.cpp +++ b/NorthstarDedicatedTest/scriptmodmenu.cpp @@ -9,7 +9,7 @@ SQRESULT SQ_GetModNames(void* sqvm) { g_pClientSquirrel->sq_newarray(sqvm, 0); - for (Mod& mod : g_ModManager->m_loadedMods) + for (Mod& mod : g_pModManager->m_loadedMods) { g_pClientSquirrel->sq_pushstring(sqvm, mod.Name.c_str(), -1); g_pClientSquirrel->sq_arrayappend(sqvm, -2); @@ -24,7 +24,7 @@ SQRESULT SQ_IsModEnabled(void* sqvm) const SQChar* modName = g_pClientSquirrel->sq_getstring(sqvm, 1); // manual lookup, not super performant but eh not a big deal - for (Mod& mod : g_ModManager->m_loadedMods) + for (Mod& mod : g_pModManager->m_loadedMods) { if (!mod.Name.compare(modName)) { @@ -43,7 +43,7 @@ SQRESULT SQ_SetModEnabled(void* sqvm) const SQBool enabled = g_pClientSquirrel->sq_getbool(sqvm, 2); // manual lookup, not super performant but eh not a big deal - for (Mod& mod : g_ModManager->m_loadedMods) + for (Mod& mod : g_pModManager->m_loadedMods) { if (!mod.Name.compare(modName)) { @@ -61,7 +61,7 @@ SQRESULT SQ_GetModDescription(void* sqvm) const SQChar* modName = g_pClientSquirrel->sq_getstring(sqvm, 1); // manual lookup, not super performant but eh not a big deal - for (Mod& mod : g_ModManager->m_loadedMods) + for (Mod& mod : g_pModManager->m_loadedMods) { if (!mod.Name.compare(modName)) { @@ -79,7 +79,7 @@ SQRESULT SQ_GetModVersion(void* sqvm) const SQChar* modName = g_pClientSquirrel->sq_getstring(sqvm, 1); // manual lookup, not super performant but eh not a big deal - for (Mod& mod : g_ModManager->m_loadedMods) + for (Mod& mod : g_pModManager->m_loadedMods) { if (!mod.Name.compare(modName)) { @@ -97,7 +97,7 @@ SQRESULT SQ_GetModDownloadLink(void* sqvm) const SQChar* modName = g_pClientSquirrel->sq_getstring(sqvm, 1); // manual lookup, not super performant but eh not a big deal - for (Mod& mod : g_ModManager->m_loadedMods) + for (Mod& mod : g_pModManager->m_loadedMods) { if (!mod.Name.compare(modName)) { @@ -115,7 +115,7 @@ SQRESULT SQ_GetModLoadPriority(void* sqvm) const SQChar* modName = g_pClientSquirrel->sq_getstring(sqvm, 1); // manual lookup, not super performant but eh not a big deal - for (Mod& mod : g_ModManager->m_loadedMods) + for (Mod& mod : g_pModManager->m_loadedMods) { if (!mod.Name.compare(modName)) { @@ -133,7 +133,7 @@ SQRESULT SQ_IsModRequiredOnClient(void* sqvm) const SQChar* modName = g_pClientSquirrel->sq_getstring(sqvm, 1); // manual lookup, not super performant but eh not a big deal - for (Mod& mod : g_ModManager->m_loadedMods) + for (Mod& mod : g_pModManager->m_loadedMods) { if (!mod.Name.compare(modName)) { @@ -152,7 +152,7 @@ SQRESULT SQ_GetModConvars(void* sqvm) g_pClientSquirrel->sq_newarray(sqvm, 0); // manual lookup, not super performant but eh not a big deal - for (Mod& mod : g_ModManager->m_loadedMods) + for (Mod& mod : g_pModManager->m_loadedMods) { if (!mod.Name.compare(modName)) { @@ -172,7 +172,7 @@ SQRESULT SQ_GetModConvars(void* sqvm) // void function NSReloadMods() SQRESULT SQ_ReloadMods(void* sqvm) { - g_ModManager->LoadMods(); + g_pModManager->LoadMods(); return SQRESULT_NULL; } |