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:
@@ -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()
|
||||
|
||||
Reference in New Issue
Block a user