diff --git a/src/Components/Modules/BitMessage.cpp b/src/Components/Modules/BitMessage.cpp index 78acf705..37be40dd 100644 --- a/src/Components/Modules/BitMessage.cpp +++ b/src/Components/Modules/BitMessage.cpp @@ -15,7 +15,7 @@ namespace Components { #ifdef DEBUG Logger::Print("Initializing BitMessage...\n"); -#endif // DEBUG +#endif QuickPatch::OnShutdown([] () { diff --git a/src/Components/Modules/QuickPatch.cpp b/src/Components/Modules/QuickPatch.cpp index a4408bc9..7fbcaf70 100644 --- a/src/Components/Modules/QuickPatch.cpp +++ b/src/Components/Modules/QuickPatch.cpp @@ -15,10 +15,10 @@ namespace Components QuickPatch::ShutdownSignal.connect(callback); } - void QuickPatch::ShutdownStub(int channel, const char* message) + void QuickPatch::ShutdownStub(int num) { - Game::Com_Printf(channel, message); QuickPatch::ShutdownSignal(); + Utils::Hook::Call(0x46B370)(num); } void QuickPatch::OnFrame(QuickPatch::Callback* callback) @@ -323,7 +323,7 @@ namespace Components Utils::Hook::Set(0x60B279, CLIENT_CONFIG); Utils::Hook::Set(0x60BBD4, CLIENT_CONFIG); - Utils::Hook(0x4D4007, QuickPatch::ShutdownStub, HOOK_CALL).Install()->Quick(); + Utils::Hook(0x4D697A, QuickPatch::ShutdownStub, HOOK_CALL).Install()->Quick(); // Disable profile system // Utils::Hook::Nop(0x60BEB1, 5); // GamerProfile_InitAllProfiles - Causes an error, when calling a harrier killstreak. diff --git a/src/Components/Modules/QuickPatch.hpp b/src/Components/Modules/QuickPatch.hpp index 83e3019b..10375106 100644 --- a/src/Components/Modules/QuickPatch.hpp +++ b/src/Components/Modules/QuickPatch.hpp @@ -24,7 +24,7 @@ namespace Components static wink::signal> ShutdownSignal; static int64_t* GetStatsID(); - static void ShutdownStub(int channel, const char* message); + static void ShutdownStub(int num); static void SelectStringTableEntryInDvarStub();