move disable debug cursor patch to patches

now it doesn't rely on checking for a separate patch that could change (break things)
This commit is contained in:
somewhatlurker
2019-10-14 02:37:09 +11:00
parent b730916e62
commit 57e7392b8d
2 changed files with 2 additions and 7 deletions
@@ -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)
@@ -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()