From 1b65bda3237ddbc7b8f25332ac6faf0728d77660 Mon Sep 17 00:00:00 2001 From: Federico Cecchetto Date: Sat, 29 Jan 2022 16:37:04 +0100 Subject: [PATCH] Update pointers --- src/dllmain.cpp | 8 ++++---- src/game/symbols.hpp | 12 ++++++------ 2 files changed, 10 insertions(+), 10 deletions(-) diff --git a/src/dllmain.cpp b/src/dllmain.cpp index e6657cd..a402edc 100644 --- a/src/dllmain.cpp +++ b/src/dllmain.cpp @@ -5,13 +5,13 @@ BOOL APIENTRY DllMain(HMODULE hModule, DWORD ul_reason_for_call, LPVOID lpReserv { if (ul_reason_for_call == DLL_PROCESS_ATTACH) { - const auto value = *reinterpret_cast(0x21000000); - if (value != 0x7AC6) + const auto value = *reinterpret_cast(0x21500000); + if (value != 0x9C28D23B) { MessageBoxA(NULL, "This version of iw5-gsc-utils is outdated.\n" \ - "Download the latest dll from here: https://github.com/fedddddd/iw5-gsc-utils/releases" \ - , "ERROR", MB_ICONERROR); + "Download the latest dll from here: https://github.com/fedddddd/iw5-gsc-utils/releases", + "ERROR", MB_ICONERROR); return FALSE; } diff --git a/src/game/symbols.hpp b/src/game/symbols.hpp index 734cc75..83c7ada 100644 --- a/src/game/symbols.hpp +++ b/src/game/symbols.hpp @@ -83,11 +83,11 @@ namespace game namespace plutonium { - WEAK symbol> function_map_rev{0x206964D0}; - WEAK symbol> method_map_rev{0x206964F0}; - WEAK symbol> token_map_rev{0x20696530}; - WEAK symbol printf{0x20887840}; - WEAK symbol function_table{0x2068F210}; - WEAK symbol method_table{0x2068F9E0}; + WEAK symbol> function_map_rev{0x206B77E0}; + WEAK symbol> method_map_rev{0x206B7800}; + WEAK symbol> token_map_rev{0x206B7840}; + WEAK symbol printf{0x208A9060}; + WEAK symbol function_table{0x206B0160}; + WEAK symbol method_table{0x206B0930}; } } \ No newline at end of file