aboutsummaryrefslogtreecommitdiff
path: root/NorthstarDLL/r2engine.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'NorthstarDLL/r2engine.cpp')
-rw-r--r--NorthstarDLL/r2engine.cpp4
1 files changed, 4 insertions, 0 deletions
diff --git a/NorthstarDLL/r2engine.cpp b/NorthstarDLL/r2engine.cpp
index 8d4390e6..5d063141 100644
--- a/NorthstarDLL/r2engine.cpp
+++ b/NorthstarDLL/r2engine.cpp
@@ -11,6 +11,8 @@ namespace R2
Cbuf_ExecuteType Cbuf_Execute;
CEngine* g_pEngine;
+
+ void (*CBaseClient__Disconnect)(void* self, uint32_t unknownButAlways1, const char* reason, ...);
} // namespace R2
ON_DLL_LOAD("engine.dll", R2Engine, (HMODULE baseAddress))
@@ -20,4 +22,6 @@ ON_DLL_LOAD("engine.dll", R2Engine, (HMODULE baseAddress))
Cbuf_Execute = (Cbuf_ExecuteType)((char*)baseAddress + 0x1204B0);
g_pEngine = *(CEngine**)((char*)baseAddress + 0x7D70C8);
+
+ CBaseClient__Disconnect = (void (*)(void*, uint32_t, const char*, ...))((char*)baseAddress + 0x1012C0);
} \ No newline at end of file