aboutsummaryrefslogtreecommitdiff
path: root/NorthstarDedicatedTest/squirrel.cpp
diff options
context:
space:
mode:
authorBobTheBob <32057864+BobTheBob9@users.noreply.github.com>2021-07-23 15:36:18 +0100
committerBobTheBob <32057864+BobTheBob9@users.noreply.github.com>2021-07-23 15:36:18 +0100
commit844e12403400b455fe5df8c2e19145a2ed1a7d45 (patch)
tree81839795869676892b0219d4d1533fb40d6074af /NorthstarDedicatedTest/squirrel.cpp
parent23a1dafcde70822a9899e9aab190f36521c1aedd (diff)
downloadNorthstarLauncher-844e12403400b455fe5df8c2e19145a2ed1a7d45.tar.gz
NorthstarLauncher-844e12403400b455fe5df8c2e19145a2ed1a7d45.zip
add support for building scripts.rson at runtime
Diffstat (limited to 'NorthstarDedicatedTest/squirrel.cpp')
-rw-r--r--NorthstarDedicatedTest/squirrel.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/NorthstarDedicatedTest/squirrel.cpp b/NorthstarDedicatedTest/squirrel.cpp
index 4eae96a4..4462eb7f 100644
--- a/NorthstarDedicatedTest/squirrel.cpp
+++ b/NorthstarDedicatedTest/squirrel.cpp
@@ -133,7 +133,7 @@ template<Context context> void* CreateNewVMHook(void* a1, Context realContext)
g_ServerSquirrelManager->sqvm = sqvm;
}
- spdlog::info("CreateNewVM {} {}", GetContextName(context), sqvm);
+ spdlog::info("CreateNewVM {} {}", GetContextName(realContext), sqvm);
return sqvm;
}
@@ -199,6 +199,7 @@ template<Context context> char CallScriptInitCallbackHook(void* sqvm, const char
shouldCallCustomCallbacks = true;
// run before callbacks
+ // todo: we need to verify if RunOn is valid for current state before calling callbacks
if (shouldCallCustomCallbacks)
{
for (Mod* mod : g_ModManager->m_loadedMods)