mirror of
https://github.com/CookiePLMonster/SilentPatch.git
synced 2024-12-28 23:03:01 +05:00
Remove FILE_FLAG_NO_BUFFERING from CdStreams - III (all), VC (all), SA (1.0)
This commit is contained in:
parent
832828ac8f
commit
f0a53778ee
3 changed files with 16 additions and 0 deletions
|
@ -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)
|
||||
|
|
|
@ -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()
|
||||
|
|
|
@ -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)
|
||||
|
|
Loading…
Reference in a new issue