diff options
author | BobTheBob9 <for.oliver.kirkham@gmail.com> | 2022-07-24 20:55:34 +0100 |
---|---|---|
committer | BobTheBob9 <for.oliver.kirkham@gmail.com> | 2022-07-24 20:55:34 +0100 |
commit | 52dc6d143fec8eabb9958bacbdbf6f1b4b4af592 (patch) | |
tree | 61473cc529921fa622d7815b06c8530234248034 /NorthstarDLL/serverpresence.cpp | |
parent | b0bef05111a95a4cce6250d2b79e2aa5baa6dd98 (diff) | |
download | NorthstarLauncher-52dc6d143fec8eabb9958bacbdbf6f1b4b4af592.tar.gz NorthstarLauncher-52dc6d143fec8eabb9958bacbdbf6f1b4b4af592.zip |
add new memory lib
Diffstat (limited to 'NorthstarDLL/serverpresence.cpp')
-rw-r--r-- | NorthstarDLL/serverpresence.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/NorthstarDLL/serverpresence.cpp b/NorthstarDLL/serverpresence.cpp index 3db39c82..287c66da 100644 --- a/NorthstarDLL/serverpresence.cpp +++ b/NorthstarDLL/serverpresence.cpp @@ -199,9 +199,9 @@ void ServerPresenceManager::SetPlayerCount(const int iPlayerCount) m_ServerPresence.m_iPlayerCount = iPlayerCount;
}
-ON_DLL_LOAD_RELIESON("engine.dll", ServerPresence, ConVar, (HMODULE baseAddress))
+ON_DLL_LOAD_RELIESON("engine.dll", ServerPresence, ConVar, (CModule module))
{
g_pServerPresence = new ServerPresenceManager;
- Cvar_hostname = *(ConVar**)((char*)baseAddress + 0x1315bae8);
+ Cvar_hostname = module.Offset(0x1315BAE8).Deref().As<ConVar*>();
}
\ No newline at end of file |