aboutsummaryrefslogtreecommitdiff
path: root/NorthstarDLL/r2engine.cpp
diff options
context:
space:
mode:
authorBobTheBob9 <for.oliver.kirkham@gmail.com>2022-08-16 01:12:59 +0100
committerBobTheBob9 <for.oliver.kirkham@gmail.com>2022-08-16 01:12:59 +0100
commit082f3893215797268d7ac8c1000ebe371f276af7 (patch)
treeb5cc677a49635a9244559e235d4915c064c9f6c4 /NorthstarDLL/r2engine.cpp
parentb30a385fc25dad05e568ae8538f5aa3656c5c8d4 (diff)
downloadNorthstarLauncher-082f3893215797268d7ac8c1000ebe371f276af7.tar.gz
NorthstarLauncher-082f3893215797268d7ac8c1000ebe371f276af7.zip
lots of stuff idk
Diffstat (limited to 'NorthstarDLL/r2engine.cpp')
-rw-r--r--NorthstarDLL/r2engine.cpp66
1 files changed, 33 insertions, 33 deletions
diff --git a/NorthstarDLL/r2engine.cpp b/NorthstarDLL/r2engine.cpp
index 451928af..a3b6225f 100644
--- a/NorthstarDLL/r2engine.cpp
+++ b/NorthstarDLL/r2engine.cpp
@@ -1,33 +1,33 @@
-#include "pch.h"
-#include "r2engine.h"
-
-using namespace R2;
-
-// use the R2 namespace for game funcs
-namespace R2
-{
- Cbuf_GetCurrentPlayerType Cbuf_GetCurrentPlayer;
- Cbuf_AddTextType Cbuf_AddText;
- Cbuf_ExecuteType Cbuf_Execute;
-
- 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, (CModule module))
-{
- Cbuf_GetCurrentPlayer = module.Offset(0x120630).As<Cbuf_GetCurrentPlayerType>();
- Cbuf_AddText = module.Offset(0x1203B0).As<Cbuf_AddTextType>();
- Cbuf_Execute = module.Offset(0x1204B0).As<Cbuf_ExecuteType>();
-
- g_pEngine = module.Offset(0x7D70C8).Deref().As<CEngine*>(); // new
-
- CBaseClient__Disconnect = module.Offset(0x1012C0).As<void(*)(void*, uint32_t, const char*, ...)>();
- g_pClientArray = module.Offset(0x12A53F90).As<CBaseClient*>();
-
- g_pServerState = module.Offset(0x12A53D48).As<server_state_t*>();
-} \ No newline at end of file
+#include "pch.h"
+#include "r2engine.h"
+
+using namespace R2;
+
+// use the R2 namespace for game funcs
+namespace R2
+{
+ Cbuf_GetCurrentPlayerType Cbuf_GetCurrentPlayer;
+ Cbuf_AddTextType Cbuf_AddText;
+ Cbuf_ExecuteType Cbuf_Execute;
+
+ 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, (CModule module))
+{
+ Cbuf_GetCurrentPlayer = module.Offset(0x120630).As<Cbuf_GetCurrentPlayerType>();
+ Cbuf_AddText = module.Offset(0x1203B0).As<Cbuf_AddTextType>();
+ Cbuf_Execute = module.Offset(0x1204B0).As<Cbuf_ExecuteType>();
+
+ g_pEngine = module.Offset(0x7D70C8).Deref().As<CEngine*>(); // new
+
+ CBaseClient__Disconnect = module.Offset(0x1012C0).As<void(*)(void*, uint32_t, const char*, ...)>();
+ g_pClientArray = module.Offset(0x12A53F90).As<CBaseClient*>();
+
+ g_pServerState = module.Offset(0x12A53D48).As<server_state_t*>();
+}