Skip to content

Commit

Permalink
Remove GTAVFindExternalOffsetsFor112 PatchedMenu
Browse files Browse the repository at this point in the history
  • Loading branch information
TheRouletteBoi committed Apr 30, 2023
1 parent e441e88 commit b4515f3
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 12 deletions.
1 change: 0 additions & 1 deletion src/Games/FindActiveGame.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,6 @@ class FindActiveGame
GTAVSerendipity,
GTAVTerrorizer,
GTAVDebugPayload,
GTAVFindExternalOffsetsFor112,

// Minecraft
MinecraftModcraftV4,
Expand Down
14 changes: 3 additions & 11 deletions src/Games/GTAV.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -23,10 +23,10 @@ namespace GTAV
28,
"xx??xx??xx??xx??xx??xx??xx??");

uint32_t high = GetMem<uint32_t>(addr + 0x1C);
uint32_t low = GetMem<uint32_t>(addr + 0x28);
uint32_t low = GetMem<uint32_t>(addr + 0x1C);
uint32_t high = GetMem<uint32_t>(addr + 0x28);

uint32_t combineAddr = (((uint16_t)(high) << 16) | (uint16_t)(low));
uint32_t combineAddr = (((uint16_t)(low) << 16) | (uint16_t)(high));
uint32_t combineFinal = (combineAddr & 0x8000) ? combineAddr - 0x10000 : combineAddr;

globalPtr = combineFinal;
Expand Down Expand Up @@ -139,14 +139,6 @@ namespace GTAV
vsh::ShowNotificationWithIcon(L"GTAV Payload is now loaded", vsh::NotifyIcon::Pen, vsh::NotifySound::Trophy);
break;
}
case FindActiveGame::PatchedMenu::GTAVFindExternalOffsetsFor112:
{
// wait because injecting menu too fast can result in a crash
Sleep(50000);

CHEATS::FindExternalOffsets();
break;
}
}
}
}

0 comments on commit b4515f3

Please sign in to comment.