aboutsummaryrefslogtreecommitdiff
path: root/NorthstarDLL/r2client.cpp
diff options
context:
space:
mode:
authorBobTheBob9 <for.oliver.kirkham@gmail.com>2022-07-24 20:55:34 +0100
committerBobTheBob9 <for.oliver.kirkham@gmail.com>2022-07-24 20:55:34 +0100
commit52dc6d143fec8eabb9958bacbdbf6f1b4b4af592 (patch)
tree61473cc529921fa622d7815b06c8530234248034 /NorthstarDLL/r2client.cpp
parentb0bef05111a95a4cce6250d2b79e2aa5baa6dd98 (diff)
downloadNorthstarLauncher-52dc6d143fec8eabb9958bacbdbf6f1b4b4af592.tar.gz
NorthstarLauncher-52dc6d143fec8eabb9958bacbdbf6f1b4b4af592.zip
add new memory lib
Diffstat (limited to 'NorthstarDLL/r2client.cpp')
-rw-r--r--NorthstarDLL/r2client.cpp8
1 files changed, 4 insertions, 4 deletions
diff --git a/NorthstarDLL/r2client.cpp b/NorthstarDLL/r2client.cpp
index e973ff79..6eb3c6c6 100644
--- a/NorthstarDLL/r2client.cpp
+++ b/NorthstarDLL/r2client.cpp
@@ -11,10 +11,10 @@ namespace R2
GetBaseLocalClientType GetBaseLocalClient;
} // namespace R2
-ON_DLL_LOAD("engine.dll", R2EngineClient, (HMODULE baseAddress))
+ON_DLL_LOAD("engine.dll", R2EngineClient, (CModule module))
{
- g_pLocalPlayerUserID = (char*)baseAddress + 0x13F8E688;
- g_pLocalPlayerOriginToken = (char*)baseAddress + 0x13979C80;
+ g_pLocalPlayerUserID = module.Offset(0x13F8E688).As<char*>();
+ g_pLocalPlayerOriginToken = module.Offset(0x13979C80).As<char*>();
- GetBaseLocalClient = (GetBaseLocalClientType)((char*)baseAddress + 0x78200);
+ GetBaseLocalClient = module.Offset(0x78200).As<GetBaseLocalClientType>();
} \ No newline at end of file