From 0b44821d818e11aa320b90af820502a4217f9850 Mon Sep 17 00:00:00 2001 From: momo5502 Date: Sat, 12 Mar 2016 01:05:34 +0100 Subject: [PATCH] Rename config file (config_mp.cfg -> iw4x_config.cfg) --- src/Components/Modules/QuickPatch.cpp | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/src/Components/Modules/QuickPatch.cpp b/src/Components/Modules/QuickPatch.cpp index b2f556c2..662ea27b 100644 --- a/src/Components/Modules/QuickPatch.cpp +++ b/src/Components/Modules/QuickPatch.cpp @@ -212,13 +212,20 @@ namespace Components Utils::Hook::Set(0x60A90C, "logs/console_mp.log"); Utils::Hook::Set(0x60A918, "logs/console_mp.log"); + // Rename config + Utils::Hook::Set(0x461B4B, "iw4x_config.cfg"); + Utils::Hook::Set(0x47DCBB, "iw4x_config.cfg"); + Utils::Hook::Set(0x6098F8, "iw4x_config.cfg"); + Utils::Hook::Set(0x60B279, "iw4x_config.cfg"); + Utils::Hook::Set(0x60BBD4, "iw4x_config.cfg"); + #ifndef DEBUG Utils::Hook::Nop(0x60BEF6, 5); // Don't reset intro dvar #endif Utils::Hook(0x4D4007, QuickPatch::ShutdownStub, HOOK_CALL).Install()->Quick(); - // Rename stat file - TODO: beautify + // Rename stat file Utils::Hook::SetString(0x71C048, "iw4x.stat"); // Patch stats steamid