diff options
author | BobTheBob <32057864+BobTheBob9@users.noreply.github.com> | 2022-05-11 15:38:06 +0100 |
---|---|---|
committer | BobTheBob <32057864+BobTheBob9@users.noreply.github.com> | 2022-05-11 15:38:06 +0100 |
commit | e82d6661912c3010ba77958fc977d8db1e7bc769 (patch) | |
tree | 632a53804b827e14ba654c906ea37f4a581b48e9 /NorthstarDedicatedTest/scriptmodmenu.cpp | |
parent | c9771185a73ffb324887a85f6d2185bd14da374d (diff) | |
download | NorthstarLauncher-e82d6661912c3010ba77958fc977d8db1e7bc769.tar.gz NorthstarLauncher-e82d6661912c3010ba77958fc977d8db1e7bc769.zip |
rename g_ModManager to g_pModManager
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; } |