mirror of
https://github.com/CookiePLMonster/SilentPatch.git
synced 2024-12-29 15:23:02 +05:00
Unnamed CdStream semaphore (allows to run III/VC/SA all at once)
This commit is contained in:
parent
4b2c145028
commit
080cc24f34
2 changed files with 15 additions and 0 deletions
|
@ -196,6 +196,17 @@ namespace Common {
|
|||
}
|
||||
|
||||
}
|
||||
|
||||
// unnamed CdStream semaphore
|
||||
{
|
||||
auto mem = pattern( "8D 04 85 00 00 00 00 50 6A 40 FF 15" ).count_hint(1);
|
||||
if ( mem.size() == 1 )
|
||||
{
|
||||
Patch( mem.get_first( 0x25 ), { 0x6A, 0x00 } ); // push 0 \ nop
|
||||
Nop( mem.get_first( 0x25 + 2 ), 3 );
|
||||
}
|
||||
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
|
@ -3383,6 +3383,10 @@ void Patch_SA_10()
|
|||
InjectHook( 0x4485DB, &CStoredCar::RestoreCar_SilentPatch );
|
||||
}
|
||||
|
||||
|
||||
// unnamed CdStream semaphore
|
||||
Patch( 0x406945, { 0x6A, 0x00 } ); // push 0 \ nop
|
||||
Nop( 0x406945 + 2, 3 );
|
||||
}
|
||||
|
||||
void Patch_SA_11()
|
||||
|
|
Loading…
Reference in a new issue