From b0bef05111a95a4cce6250d2b79e2aa5baa6dd98 Mon Sep 17 00:00:00 2001 From: BobTheBob9 Date: Mon, 18 Jul 2022 00:00:39 +0100 Subject: use modular ServerPresence system for registering servers --- NorthstarDLL/r2engine.cpp | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'NorthstarDLL/r2engine.cpp') diff --git a/NorthstarDLL/r2engine.cpp b/NorthstarDLL/r2engine.cpp index 5d063141..883178ee 100644 --- a/NorthstarDLL/r2engine.cpp +++ b/NorthstarDLL/r2engine.cpp @@ -13,6 +13,10 @@ namespace R2 CEngine* g_pEngine; void (*CBaseClient__Disconnect)(void* self, uint32_t unknownButAlways1, const char* reason, ...); + + CBaseClient* g_pClientArray; + + server_state_t* g_pServerState; } // namespace R2 ON_DLL_LOAD("engine.dll", R2Engine, (HMODULE baseAddress)) @@ -24,4 +28,8 @@ ON_DLL_LOAD("engine.dll", R2Engine, (HMODULE baseAddress)) g_pEngine = *(CEngine**)((char*)baseAddress + 0x7D70C8); CBaseClient__Disconnect = (void (*)(void*, uint32_t, const char*, ...))((char*)baseAddress + 0x1012C0); + + g_pServerState = (server_state_t*)((char*)baseAddress + 0x12A53D48); + + g_pClientArray = (CBaseClient*)((char*)baseAddress + 0x12A53F90); } \ No newline at end of file -- cgit v1.2.3