From 5b0e662e6b1eda6f9d40ab9c4b0978a65a2e1fb9 Mon Sep 17 00:00:00 2001 From: nastys <@> Date: Sun, 13 Oct 2019 02:35:02 +0200 Subject: [PATCH] Disable debug cursor if the system one is enabled (thanks to somewhatlurker) --- .../source/plugins/TLAC/Components/DebugComponent.cpp | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/source-code/source/plugins/TLAC/Components/DebugComponent.cpp b/source-code/source/plugins/TLAC/Components/DebugComponent.cpp index 1719596..3ea6713 100644 --- a/source-code/source/plugins/TLAC/Components/DebugComponent.cpp +++ b/source-code/source/plugins/TLAC/Components/DebugComponent.cpp @@ -166,6 +166,12 @@ namespace TLAC::Components for (size_t i = 0; i < _countof(patches); i++) InjectCode(patches[i].Address, patches[i].Data); + + if (*(int*)0x000000014019341B == 0x00) + { + // Disable debug cursor + InjectCode((void*)0x00000001403012b5, { 0xeb }); + } } void DebugComponent::SetConsoleForeground()