Update pointers

This commit is contained in:
Federico Cecchetto 2022-01-29 16:37:04 +01:00
parent 9ca07aca55
commit 1b65bda323
2 changed files with 10 additions and 10 deletions

View File

@ -5,13 +5,13 @@ BOOL APIENTRY DllMain(HMODULE hModule, DWORD ul_reason_for_call, LPVOID lpReserv
{ {
if (ul_reason_for_call == DLL_PROCESS_ATTACH) if (ul_reason_for_call == DLL_PROCESS_ATTACH)
{ {
const auto value = *reinterpret_cast<DWORD*>(0x21000000); const auto value = *reinterpret_cast<DWORD*>(0x21500000);
if (value != 0x7AC6) if (value != 0x9C28D23B)
{ {
MessageBoxA(NULL, MessageBoxA(NULL,
"This version of iw5-gsc-utils is outdated.\n" \ "This version of iw5-gsc-utils is outdated.\n" \
"Download the latest dll from here: https://github.com/fedddddd/iw5-gsc-utils/releases" \ "Download the latest dll from here: https://github.com/fedddddd/iw5-gsc-utils/releases",
, "ERROR", MB_ICONERROR); "ERROR", MB_ICONERROR);
return FALSE; return FALSE;
} }

View File

@ -83,11 +83,11 @@ namespace game
namespace plutonium namespace plutonium
{ {
WEAK symbol<std::unordered_map<std::string, std::uint16_t>> function_map_rev{0x206964D0}; WEAK symbol<std::unordered_map<std::string, std::uint16_t>> function_map_rev{0x206B77E0};
WEAK symbol<std::unordered_map<std::string, std::uint16_t>> method_map_rev{0x206964F0}; WEAK symbol<std::unordered_map<std::string, std::uint16_t>> method_map_rev{0x206B7800};
WEAK symbol<std::unordered_map<std::string, std::uint16_t>> token_map_rev{0x20696530}; WEAK symbol<std::unordered_map<std::string, std::uint16_t>> token_map_rev{0x206B7840};
WEAK symbol<int(const char* fmt, ...)> printf{0x20887840}; WEAK symbol<int(const char* fmt, ...)> printf{0x208A9060};
WEAK symbol<void*> function_table{0x2068F210}; WEAK symbol<void*> function_table{0x206B0160};
WEAK symbol<void*> method_table{0x2068F9E0}; WEAK symbol<void*> method_table{0x206B0930};
} }
} }