Unnamed CdStream semaphore (allows to run III/VC/SA all at once)

This commit is contained in:
Silent 2017-10-03 22:24:01 +02:00
parent 4b2c145028
commit 080cc24f34
2 changed files with 15 additions and 0 deletions

View file

@ -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 );
}
}
} }
} }
} }

View file

@ -3383,6 +3383,10 @@ void Patch_SA_10()
InjectHook( 0x4485DB, &CStoredCar::RestoreCar_SilentPatch ); InjectHook( 0x4485DB, &CStoredCar::RestoreCar_SilentPatch );
} }
// unnamed CdStream semaphore
Patch( 0x406945, { 0x6A, 0x00 } ); // push 0 \ nop
Nop( 0x406945 + 2, 3 );
} }
void Patch_SA_11() void Patch_SA_11()