mirror of
https://github.com/CookiePLMonster/SilentPatch.git
synced 2025-01-01 16:53: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
|
#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();
|
FLAUtils::Init();
|
||||||
|
|
||||||
|
const uint8_t bytes[] = { 0x8B, 0x4C, 0x24, 0x64, 0x51 };
|
||||||
|
memcpy((void*)0x5B6FCC, bytes, sizeof(bytes));
|
||||||
|
|
||||||
return FALSE;
|
return FALSE;
|
||||||
}
|
}
|
||||||
return TRUE;
|
return TRUE;
|
||||||
|
@ -3150,12 +3163,6 @@ void Patch_SA_10()
|
||||||
strcpy(pScannerNames + (8*113), "WESTP");
|
strcpy(pScannerNames + (8*113), "WESTP");
|
||||||
strcpy(pScannerNames + (8*134), "????");
|
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
|
// AI accuracy issue
|
||||||
Nop(0x73B3AE, 1);
|
Nop(0x73B3AE, 1);
|
||||||
|
|
Loading…
Reference in a new issue