From 4cb707d43da760f75506ee70725f509b84dfa70c Mon Sep 17 00:00:00 2001 From: momo5502 Date: Sun, 4 Sep 2016 12:45:47 +0200 Subject: [PATCH] --- src/Components/Modules/Console.cpp | 3 +++ src/Components/Modules/QuickPatch.cpp | 2 +- 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/src/Components/Modules/Console.cpp b/src/Components/Modules/Console.cpp index c948715c..604fb3e1 100644 --- a/src/Components/Modules/Console.cpp +++ b/src/Components/Modules/Console.cpp @@ -522,6 +522,9 @@ namespace Components FreeConsole(); Utils::Hook::Nop(0x60BB58, 11); + // Redirect input (]command) + Utils::Hook(0x47025A, 0x4F5770, HOOK_CALL).Install()->Quick(); + Utils::Hook(0x60BB68, [] () { Console::ConsoleThread = std::thread(Console::ConsoleRunner); diff --git a/src/Components/Modules/QuickPatch.cpp b/src/Components/Modules/QuickPatch.cpp index d2089fa2..779d2fed 100644 --- a/src/Components/Modules/QuickPatch.cpp +++ b/src/Components/Modules/QuickPatch.cpp @@ -170,7 +170,7 @@ namespace Components Utils::Hook::Set(0x45ACE0, 0xC301B0); // fs_basegame - Utils::Hook::Set(0x6431D1, BASEGAME); + Utils::Hook::Set(0x6431D1, BASEGAME); // UI version string Utils::Hook::Set(0x43F73B, "IW4x: " VERSION);