diff --git a/r5dev/squirrel/sqstdaux.cpp b/r5dev/squirrel/sqstdaux.cpp index 520b2d6c..ded95ef9 100644 --- a/r5dev/squirrel/sqstdaux.cpp +++ b/r5dev/squirrel/sqstdaux.cpp @@ -19,21 +19,21 @@ SQInteger sqstd_aux_printerror(HSQUIRRELVM v) return results; } -SQInteger sqstd_aux_badindex(HSQUIRRELVM v, __m128i* a2, __m128i* a3) +SQInteger sqstd_aux_badlogic(HSQUIRRELVM v, __m128i* a2, __m128i* a3) { g_bSQAuxBadIndex = true; - SQInteger results = v_sqstd_aux_badindex(v, a2, a3); + SQInteger results = v_sqstd_aux_badlogic(v, a2, a3); return results; } void SQAUX_Attach() { DetourAttach((LPVOID*)&v_sqstd_aux_printerror, &sqstd_aux_printerror); - DetourAttach((LPVOID*)&v_sqstd_aux_badindex, &sqstd_aux_badindex); + DetourAttach((LPVOID*)&v_sqstd_aux_badlogic, &sqstd_aux_badlogic); } void SQAUX_Detach() { DetourDetach((LPVOID*)&v_sqstd_aux_printerror, &sqstd_aux_printerror); - DetourDetach((LPVOID*)&v_sqstd_aux_badindex, &sqstd_aux_badindex); + DetourDetach((LPVOID*)&v_sqstd_aux_badlogic, &sqstd_aux_badlogic); } \ No newline at end of file diff --git a/r5dev/squirrel/sqstdaux.h b/r5dev/squirrel/sqstdaux.h index 978fa679..576461c7 100644 --- a/r5dev/squirrel/sqstdaux.h +++ b/r5dev/squirrel/sqstdaux.h @@ -5,8 +5,8 @@ extern bool g_bSQAuxBadIndex; inline CMemory p_sqstd_aux_printerror; inline auto v_sqstd_aux_printerror = p_sqstd_aux_printerror.RCast(); -inline CMemory p_sqstd_aux_badindex; -inline auto v_sqstd_aux_badindex = p_sqstd_aux_badindex.RCast(); +inline CMemory p_sqstd_aux_badlogic; +inline auto v_sqstd_aux_badlogic = p_sqstd_aux_badlogic.RCast(); void SQAUX_Attach(); void SQAUX_Detach(); @@ -16,7 +16,7 @@ class VSqStdAux : public IDetour virtual void GetAdr(void) const { spdlog::debug("| FUN: sqstd_aux_printerror : {:#18x} |\n", p_sqstd_aux_printerror.GetPtr()); - spdlog::debug("| FUN: sqstd_aux_badindex : {:#18x} |\n", p_sqstd_aux_badindex.GetPtr()); + spdlog::debug("| FUN: sqstd_aux_badlogic : {:#18x} |\n", p_sqstd_aux_badlogic.GetPtr()); spdlog::debug("+----------------------------------------------------------------+\n"); } virtual void GetFun(void) const @@ -28,8 +28,8 @@ class VSqStdAux : public IDetour p_sqstd_aux_printerror = g_mGameDll.FindPatternSIMD(reinterpret_cast("\x40\x53\x56\x57\x41\x54\x41\x55\x41\x56\x41\x57\x48\x81\xEC\x00\x00\x00\x00\xFF\x05\x00\x00\x00\x00"), "xxxxxxxxxxxxxxx????xx????"); v_sqstd_aux_printerror = p_sqstd_aux_printerror.RCast(); /*40 53 56 57 41 54 41 55 41 56 41 57 48 81 EC ?? ?? ?? ?? FF 05 ?? ?? ?? ??*/ #endif - p_sqstd_aux_badindex = g_mGameDll.FindPatternSIMD(reinterpret_cast("\x48\x8B\xC4\x55\x48\x8B\xEC\x48\x83\xEC\x70\x41\x0F\x10\x00"), "xxxxxxxxxxxxxxx"); - v_sqstd_aux_badindex = p_sqstd_aux_badindex.RCast(); /*48 8B C4 55 48 8B EC 48 83 EC 70 41 0F 10 00*/ + p_sqstd_aux_badlogic = g_mGameDll.FindPatternSIMD(reinterpret_cast("\x48\x8B\xC4\x55\x48\x8B\xEC\x48\x83\xEC\x70\x41\x0F\x10\x00"), "xxxxxxxxxxxxxxx"); + v_sqstd_aux_badlogic = p_sqstd_aux_badlogic.RCast(); /*48 8B C4 55 48 8B EC 48 83 EC 70 41 0F 10 00*/ } virtual void GetVar(void) const { } virtual void GetCon(void) const { }