diff --git a/SilentPatch/Common_ddraw.cpp b/SilentPatch/Common_ddraw.cpp index 9fa6bea..e970d0c 100644 --- a/SilentPatch/Common_ddraw.cpp +++ b/SilentPatch/Common_ddraw.cpp @@ -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 ); + } + + } } } } \ No newline at end of file diff --git a/SilentPatchSA/SilentPatchSA.cpp b/SilentPatchSA/SilentPatchSA.cpp index 005502a..df5455d 100644 --- a/SilentPatchSA/SilentPatchSA.cpp +++ b/SilentPatchSA/SilentPatchSA.cpp @@ -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()