mirror of
https://github.com/CookiePLMonster/SilentPatch.git
synced 2024-12-28 23:03:01 +05:00
Use VP overloads explicitly for CdStreamSyncOnObject in case it's in hoodlum code space and it's not unprotected
This commit is contained in:
parent
4fbd372d57
commit
5c48418aae
1 changed files with 3 additions and 3 deletions
|
@ -3842,9 +3842,9 @@ void Patch_SA_10()
|
|||
const uint8_t orgCode[] = { 0x8B, 0x46, 0x04, 0x85, 0xC0, 0x74, 0x10, 0xC6, 0x46, 0x0D, 0x01 };
|
||||
if ( memcmp( orgCode, (void*)address, sizeof(orgCode) ) == 0 )
|
||||
{
|
||||
Patch( address, { 0x56, 0xFF, 0x15 } );
|
||||
Patch( address + 3, &CdStreamSync::CdStreamSyncOnObject );
|
||||
Patch( address + 3 + 4, { 0x5E, 0xC3 } );
|
||||
VP::Patch( address, { 0x56, 0xFF, 0x15 } );
|
||||
VP::Patch( address + 3, &CdStreamSync::CdStreamSyncOnObject );
|
||||
VP::Patch( address + 3 + 4, { 0x5E, 0xC3 } );
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue