aboutsummaryrefslogtreecommitdiff
path: root/NorthstarDLL/r2server.cpp
diff options
context:
space:
mode:
authorBobTheBob9 <for.oliver.kirkham@gmail.com>2022-07-18 00:00:39 +0100
committerBobTheBob9 <for.oliver.kirkham@gmail.com>2022-07-18 00:00:39 +0100
commitb0bef05111a95a4cce6250d2b79e2aa5baa6dd98 (patch)
tree5bdc39717bebfc437adf8683405d58d97e1f43b2 /NorthstarDLL/r2server.cpp
parent6ae30c9b15fcc200c7b642016e7adbfdf9b979f4 (diff)
downloadNorthstarLauncher-b0bef05111a95a4cce6250d2b79e2aa5baa6dd98.tar.gz
NorthstarLauncher-b0bef05111a95a4cce6250d2b79e2aa5baa6dd98.zip
use modular ServerPresence system for registering servers
Diffstat (limited to 'NorthstarDLL/r2server.cpp')
-rw-r--r--NorthstarDLL/r2server.cpp10
1 files changed, 2 insertions, 8 deletions
diff --git a/NorthstarDLL/r2server.cpp b/NorthstarDLL/r2server.cpp
index 848104d4..8d04beff 100644
--- a/NorthstarDLL/r2server.cpp
+++ b/NorthstarDLL/r2server.cpp
@@ -6,18 +6,12 @@ using namespace R2;
// use the R2 namespace for game funcs
namespace R2
{
- server_state_t* g_pServerState;
- void* (*Server_GetEntityByIndex)(int index);
+ CBaseEntity* (*Server_GetEntityByIndex)(int index);
CBasePlayer*(__fastcall* UTIL_PlayerByIndex)(int playerIndex);
} // namespace R2
-ON_DLL_LOAD("engine.dll", R2EngineServer, (HMODULE baseAddress))
-{
- g_pServerState = (server_state_t*)((char*)baseAddress + 0x12A53D48);
-}
-
ON_DLL_LOAD("server.dll", R2GameServer, (HMODULE baseAddress))
{
- Server_GetEntityByIndex = (void*(*)(int))((char*)baseAddress + 0xFB820);
+ Server_GetEntityByIndex = (CBaseEntity*(*)(int))((char*)baseAddress + 0xFB820);
UTIL_PlayerByIndex = (CBasePlayer*(__fastcall*)(int))((char*)baseAddress + 0x26AA10);
} \ No newline at end of file