Revert "[saco] Match RelocatePedsListHack and ApplyNewColStoreSizePatch; both call VirtualProtect inline, the UnFuck helper in their place was wrong"

This reverts commit 35e99d286f.
This commit is contained in:
RD42 committed 2026-10-04 18:49:40 +02:00
1 parent 4f1142695e
commit 6dd1516d79
1 file changed
+2 -4
+2 -4
View File
@@ -130,8 +130,7 @@ void ApplyNewColStoreSizePatch(DWORD dwCount)
int x=0;
while(x!=7) {
DWORD oldProt2;
VirtualProtect((PVOID)(dwPatchAddrColStoreSize[x] + 2),4,PAGE_EXECUTE_READWRITE,&oldProt2);
UnFuck(dwPatchAddrColStoreSize[x] + 2, 4);
*(PDWORD)(dwPatchAddrColStoreSize[x] + 2) = 44 * dwCount;
x++;
}
@@ -474,7 +473,6 @@ PED_MODEL PedModelsMemory[319];
void RelocatePedsListHack()
{
DWORD oldProt;
BYTE *aPedsListMemory = (BYTE*)&PedModelsMemory[0];
// Init the mem
@@ -486,7 +484,7 @@ void RelocatePedsListHack()
}
// Patch the GetPedsModelInfo to use us
// instead of the gta_sa.exe mem.
VirtualProtect((PVOID)0x4C67AD,4,PAGE_EXECUTE_READWRITE,&oldProt);
UnFuck(0x4C67AD,4);
*(DWORD *)0x4C67AD = (DWORD)aPedsListMemory;
}