mirror of
https://github.com/CookiePLMonster/SilentPatch.git
synced 2024-11-25 14:52:30 +01:00
Only patch IMG sizes if FLA isn't doing so already
This commit is contained in:
parent
3cde64abbc
commit
625720904d
@ -2310,7 +2310,20 @@ BOOL InjectDelayedPatches_10()
|
||||
}
|
||||
#endif
|
||||
|
||||
if ( *(DWORD*)0x4065BB == 0x3B0BE1C1 )
|
||||
{
|
||||
// Handle IMGs bigger than 4GB
|
||||
Nop( 0x4065BB, 3 );
|
||||
Nop( 0x4065C2, 1 );
|
||||
InjectHook( 0x4065C2+1, CdStreamThreadHighSize, PATCH_CALL );
|
||||
Patch<const void*>( 0x406620+2, &pCdStreamSetFilePointer );
|
||||
}
|
||||
|
||||
FLAUtils::Init();
|
||||
|
||||
const uint8_t bytes[] = { 0x8B, 0x4C, 0x24, 0x64, 0x51 };
|
||||
memcpy((void*)0x5B6FCC, bytes, sizeof(bytes));
|
||||
|
||||
return FALSE;
|
||||
}
|
||||
return TRUE;
|
||||
@ -3150,12 +3163,6 @@ void Patch_SA_10()
|
||||
strcpy(pScannerNames + (8*113), "WESTP");
|
||||
strcpy(pScannerNames + (8*134), "????");
|
||||
|
||||
// Handle IMGs bigger than 4GB
|
||||
Nop( 0x4065BB, 3 );
|
||||
Nop( 0x4065C2, 1 );
|
||||
InjectHook( 0x4065C2+1, CdStreamThreadHighSize, PATCH_CALL );
|
||||
Patch<const void*>( 0x406620+2, &pCdStreamSetFilePointer );
|
||||
|
||||
|
||||
// AI accuracy issue
|
||||
Nop(0x73B3AE, 1);
|
||||
|
Loading…
Reference in New Issue
Block a user