diff options
author | cat_or_not <41955154+catornot@users.noreply.github.com> | 2023-03-30 18:16:39 -0400 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-03-31 00:16:39 +0200 |
commit | 35696d3f9eb004ebaf45dfa1700da7ac0f92259d (patch) | |
tree | b06af04f5f4ef4004af50b582fa6fb103a3e7666 /NorthstarDLL | |
parent | 5d946ca2c10446dbe3e2aa44f2f717c06bf00fb1 (diff) | |
download | NorthstarLauncher-35696d3f9eb004ebaf45dfa1700da7ac0f92259d.tar.gz NorthstarLauncher-35696d3f9eb004ebaf45dfa1700da7ac0f92259d.zip |
Bring back sq_getobject and sq_getthisentity for the client and ui vm (#428)
bring sq funcs back
Diffstat (limited to 'NorthstarDLL')
-rw-r--r-- | NorthstarDLL/squirrel/squirrel.cpp | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/NorthstarDLL/squirrel/squirrel.cpp b/NorthstarDLL/squirrel/squirrel.cpp index 4cf342db..21ce9ae0 100644 --- a/NorthstarDLL/squirrel/squirrel.cpp +++ b/NorthstarDLL/squirrel/squirrel.cpp @@ -679,6 +679,8 @@ ON_DLL_LOAD_RELIESON("client.dll", ClientSquirrel, ConCommand, (CModule module)) g_pSquirrel<ScriptContext::CLIENT>->__sq_getasset = module.Offset(0x6010).As<sq_getassetType>(); g_pSquirrel<ScriptContext::CLIENT>->__sq_getuserdata = module.Offset(0x63D0).As<sq_getuserdataType>(); g_pSquirrel<ScriptContext::CLIENT>->__sq_getvector = module.Offset(0x6140).As<sq_getvectorType>(); + g_pSquirrel<ScriptContext::CLIENT>->__sq_getthisentity = module.Offset(0x12F80).As<sq_getthisentityType>(); + g_pSquirrel<ScriptContext::CLIENT>->__sq_getobject = module.Offset(0x6160).As<sq_getobjectType>(); g_pSquirrel<ScriptContext::UI>->__sq_getstring = g_pSquirrel<ScriptContext::CLIENT>->__sq_getstring; g_pSquirrel<ScriptContext::UI>->__sq_getinteger = g_pSquirrel<ScriptContext::CLIENT>->__sq_getinteger; g_pSquirrel<ScriptContext::UI>->__sq_getfloat = g_pSquirrel<ScriptContext::CLIENT>->__sq_getfloat; |