From 57e7392b8dcf891733b670d37788629338018c3d Mon Sep 17 00:00:00 2001 From: somewhatlurker <52014015+somewhatlurker@users.noreply.github.com> Date: Mon, 14 Oct 2019 02:37:09 +1100 Subject: [PATCH] move disable debug cursor patch to patches now it doesn't rely on checking for a separate patch that could change (break things) --- source-code/source/plugins/Patches/dllmain.cpp | 3 ++- .../source/plugins/TLAC/Components/DebugComponent.cpp | 6 ------ 2 files changed, 2 insertions(+), 7 deletions(-) diff --git a/source-code/source/plugins/Patches/dllmain.cpp b/source-code/source/plugins/Patches/dllmain.cpp index c94b4ae..d8d5130 100644 --- a/source-code/source/plugins/Patches/dllmain.cpp +++ b/source-code/source/plugins/Patches/dllmain.cpp @@ -175,7 +175,8 @@ void ApplyPatches() { // Use GLUT_CURSOR_RIGHT_ARROW instead of GLUT_CURSOR_NONE if (nCursor) { - InjectCode((void*)0x000000014019341B, { 0x00 }); + InjectCode((void*)0x000000014019341B, { 0x00 }); + InjectCode((void*)0x00000001403012b5, { 0xeb }); // Disable debug cursor printf("[Patches] Cursor enabled\n"); } // Override status icon states to be invalid (hides them) diff --git a/source-code/source/plugins/TLAC/Components/DebugComponent.cpp b/source-code/source/plugins/TLAC/Components/DebugComponent.cpp index 3ea6713..1719596 100644 --- a/source-code/source/plugins/TLAC/Components/DebugComponent.cpp +++ b/source-code/source/plugins/TLAC/Components/DebugComponent.cpp @@ -166,12 +166,6 @@ 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()