Remove FILE_FLAG_NO_BUFFERING from CdStreams - III (all), VC (all), SA (1.0)

This commit is contained in:
Silent 2017-09-12 13:31:57 +02:00
parent 832828ac8f
commit f0a53778ee
3 changed files with 16 additions and 0 deletions

View file

@ -788,6 +788,12 @@ void Patch_III_Common()
InjectHook( hookPoint.get<int>( 0x21 ), CTimer::Update_SilentPatch, PATCH_CALL );
InjectHook( hookPoint.get<int>( 0x21 + 5 ), jmpPoint, PATCH_JUMP );
}
// Remove FILE_FLAG_NO_BUFFERING from CdStreams
{
auto addr = get_pattern( "81 7C 24 04 00 08 00 00", 0x12 );
Patch<uint8_t>( addr, 0xEB );
}
}
BOOL WINAPI DllMain(HINSTANCE hinstDLL, DWORD fdwReason, LPVOID lpvReserved)

View file

@ -3458,6 +3458,10 @@ void Patch_SA_10()
// Make freeing temp objects more aggressive to fix vending crash
InjectHook( 0x5A1840, CObject::TryToFreeUpTempObjects_SilentPatch, PATCH_JUMP );
// Remove FILE_FLAG_NO_BUFFERING from CdStreams
Patch<uint8_t>( 0x406BC6, 0xEB );
}
void Patch_SA_11()

View file

@ -608,6 +608,12 @@ void Patch_VC_Common()
InjectHook( hookPoint.get<int>( 0x21 ), CTimer::Update_SilentPatch, PATCH_CALL );
InjectHook( hookPoint.get<int>( 0x21 + 5 ), jmpPoint, PATCH_JUMP );
}
// Remove FILE_FLAG_NO_BUFFERING from CdStreams
{
auto addr = get_pattern( "81 7C 24 04 00 08 00 00", 0x12 );
Patch<uint8_t>( addr, 0xEB );
}
}
BOOL WINAPI DllMain(HINSTANCE hinstDLL, DWORD fdwReason, LPVOID lpvReserved)