diff options
author | BobTheBob <32057864+BobTheBob9@users.noreply.github.com> | 2021-10-11 23:35:40 +0100 |
---|---|---|
committer | BobTheBob <32057864+BobTheBob9@users.noreply.github.com> | 2021-10-11 23:35:40 +0100 |
commit | c5cf48bba33159fc268904688f29ed20c14b11b3 (patch) | |
tree | 88aa6d01bf204f93ece63e50d3f1b9b4ca263094 /NorthstarDedicatedTest/squirrel.cpp | |
parent | cb386ef4857f5a0f13998d1813cfa7d57a00af7d (diff) | |
download | NorthstarLauncher-c5cf48bba33159fc268904688f29ed20c14b11b3.tar.gz NorthstarLauncher-c5cf48bba33159fc268904688f29ed20c14b11b3.zip |
add server script early persistence writes
Diffstat (limited to 'NorthstarDedicatedTest/squirrel.cpp')
-rw-r--r-- | NorthstarDedicatedTest/squirrel.cpp | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/NorthstarDedicatedTest/squirrel.cpp b/NorthstarDedicatedTest/squirrel.cpp index dfeb1805..f8d8cd33 100644 --- a/NorthstarDedicatedTest/squirrel.cpp +++ b/NorthstarDedicatedTest/squirrel.cpp @@ -84,6 +84,9 @@ sq_getfloatType ServerSq_getfloat; sq_getboolType ClientSq_getbool; sq_getboolType ServerSq_getbool; +sq_getentityType ClientSq_getentity; +sq_getentityType ServerSq_getentity; + template<Context context> void ExecuteCodeCommand(const CCommand& args); @@ -134,6 +137,7 @@ void InitialiseClientSquirrel(HMODULE baseAddress) ClientSq_getinteger = (sq_getintegerType)((char*)baseAddress + 0x60E0); ClientSq_getfloat = (sq_getfloatType)((char*)baseAddress + 0x6100); ClientSq_getbool = (sq_getboolType)((char*)baseAddress + 0x6130); + ClientSq_getentity = (sq_getentityType)((char*)baseAddress + 0x12F80); ENABLER_CREATEHOOK(hook, (char*)baseAddress + 0x26130, &CreateNewVMHook<CLIENT>, reinterpret_cast<LPVOID*>(&ClientCreateNewVM)); // client createnewvm function ENABLER_CREATEHOOK(hook, (char*)baseAddress + 0x26E70, &DestroyVMHook<CLIENT>, reinterpret_cast<LPVOID*>(&ClientDestroyVM)); // client destroyvm function @@ -164,6 +168,7 @@ void InitialiseServerSquirrel(HMODULE baseAddress) ServerSq_getinteger = (sq_getintegerType)((char*)baseAddress + 0x60C0); ServerSq_getfloat = (sq_getfloatType)((char*)baseAddress + 0x60E0); ServerSq_getbool = (sq_getboolType)((char*)baseAddress + 0x6110); + ServerSq_getentity = (sq_getentityType)((char*)baseAddress + 0x203B0); ENABLER_CREATEHOOK(hook, (char*)baseAddress + 0x1FE90, &SQPrintHook<SERVER>, reinterpret_cast<LPVOID*>(&ServerSQPrint)); // server print function ENABLER_CREATEHOOK(hook, (char*)baseAddress + 0x260E0, &CreateNewVMHook<SERVER>, reinterpret_cast<LPVOID*>(&ServerCreateNewVM)); // server createnewvm function |