Hook sq_pushroottable as well

This commit is contained in:
Kawe Mazidjatari 2022-03-31 00:10:18 +02:00
parent 79f99970c6
commit 42ef6ef228

View File

@ -84,6 +84,7 @@ SQRESULT sq_call(HSQUIRRELVM v, SQInteger params, SQBool retval, SQBool raiseerr
void SQAPI_Attach()
{
DetourAttach((LPVOID*)&v_sq_pushroottable, &sq_pushroottable);
DetourAttach((LPVOID*)&v_sq_pushbool, &sq_pushbool);
DetourAttach((LPVOID*)&v_sq_pushstring, &sq_pushstring);
DetourAttach((LPVOID*)&v_sq_pushinteger, &sq_pushinteger);
@ -99,6 +100,7 @@ void SQAPI_Attach()
void SQAPI_Detach()
{
DetourDetach((LPVOID*)&v_sq_pushroottable, &sq_pushroottable);
DetourDetach((LPVOID*)&v_sq_pushbool, &sq_pushbool);
DetourDetach((LPVOID*)&v_sq_pushstring, &sq_pushstring);
DetourDetach((LPVOID*)&v_sq_pushinteger, &sq_pushinteger);