mirror of
https://github.com/CookiePLMonster/SilentPatch.git
synced 2024-12-28 23:03:01 +05:00
Only patch IMG sizes if FLA isn't doing so already
This commit is contained in:
parent
3cde64abbc
commit
625720904d
1 changed files with 13 additions and 6 deletions
|
@ -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 a new issue