aboutsummaryrefslogtreecommitdiff
path: root/NorthstarDLL/r2server.cpp
diff options
context:
space:
mode:
authorBobTheBob9 <for.oliver.kirkham@gmail.com>2022-07-07 21:31:41 +0100
committerBobTheBob9 <for.oliver.kirkham@gmail.com>2022-07-07 21:31:41 +0100
commit2ae34b67e36b8ba05132d481876eb4ed7a826283 (patch)
tree63f44c8e2dcdc959d7a5317a3a7b36efedbd7d38 /NorthstarDLL/r2server.cpp
parent3406de7aaaf52cbef20b1549f2d7da0255d30f51 (diff)
downloadNorthstarLauncher-2ae34b67e36b8ba05132d481876eb4ed7a826283.tar.gz
NorthstarLauncher-2ae34b67e36b8ba05132d481876eb4ed7a826283.zip
almost fully replaced hooking lib
Diffstat (limited to 'NorthstarDLL/r2server.cpp')
-rw-r--r--NorthstarDLL/r2server.cpp40
1 files changed, 20 insertions, 20 deletions
diff --git a/NorthstarDLL/r2server.cpp b/NorthstarDLL/r2server.cpp
index c61e2d13..6a13ea9b 100644
--- a/NorthstarDLL/r2server.cpp
+++ b/NorthstarDLL/r2server.cpp
@@ -1,21 +1,21 @@
-#include "pch.h"
-#include "r2server.h"
-
-using namespace R2;
-
-// use the R2 namespace for game funcs
-namespace R2
-{
- server_state_t* g_pServerState;
- Server_GetEntityByIndexType Server_GetEntityByIndex;
-} // 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 = (Server_GetEntityByIndexType)((char*)baseAddress + 0xFB820);
+#include "pch.h"
+#include "r2server.h"
+
+using namespace R2;
+
+// use the R2 namespace for game funcs
+namespace R2
+{
+ server_state_t* g_pServerState;
+ Server_GetEntityByIndexType Server_GetEntityByIndex;
+} // 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 = (Server_GetEntityByIndexType)((char*)baseAddress + 0xFB820);
}) \ No newline at end of file