aboutsummaryrefslogtreecommitdiff
path: root/NorthstarDLL/audio.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/audio.cpp
parentb0bef05111a95a4cce6250d2b79e2aa5baa6dd98 (diff)
downloadNorthstarLauncher-52dc6d143fec8eabb9958bacbdbf6f1b4b4af592.tar.gz
NorthstarLauncher-52dc6d143fec8eabb9958bacbdbf6f1b4b4af592.zip
add new memory lib
Diffstat (limited to 'NorthstarDLL/audio.cpp')
-rw-r--r--NorthstarDLL/audio.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/NorthstarDLL/audio.cpp b/NorthstarDLL/audio.cpp
index 0aa5c9f0..e2f9f3b7 100644
--- a/NorthstarDLL/audio.cpp
+++ b/NorthstarDLL/audio.cpp
@@ -494,10 +494,10 @@ void, __fastcall, (int level, const char* string))
spdlog::info("[MSS] {} - {}", level, string);
}
-ON_DLL_LOAD_CLIENT_RELIESON("client.dll", AudioHooks, ConVar, (HMODULE baseAddress))
+ON_DLL_LOAD_CLIENT_RELIESON("client.dll", AudioHooks, ConVar, (CModule module))
{
AUTOHOOK_DISPATCH()
Cvar_ns_print_played_sounds = new ConVar("ns_print_played_sounds", "0", FCVAR_NONE, "");
- MilesStopAll = (MilesStopAll_Type)((char*)baseAddress + 0x580850);
+ MilesStopAll = module.Offset(0x580850).As<MilesStopAll_Type>();
} \ No newline at end of file