mirror of
https://github.com/CookiePLMonster/SilentPatch.git
synced 2025-01-31 06:57:28 +05:00
Modulo over CLoadingScreen::m_currDisplayedSplash - imfast compatible
This commit is contained in:
parent
73150fcefa
commit
01f7c39d1e
1 changed files with 9 additions and 6 deletions
|
@ -2509,6 +2509,15 @@ BOOL InjectDelayedPatches_10()
|
|||
}
|
||||
}
|
||||
|
||||
// For imfast compatibility
|
||||
if ( MemEquals( 0x590ADE, { 0xFF, 0x05 } ) )
|
||||
{
|
||||
// Modulo over CLoadingScreen::m_currDisplayedSplash
|
||||
Nop( 0x590ADE, 1 );
|
||||
InjectHook( 0x590ADE + 1, DoPCScreenChange_Mod, PATCH_CALL );
|
||||
Patch<const void*>( 0x590042 + 2, &currDisplayedSplash_ForLastSplash );
|
||||
}
|
||||
|
||||
#ifndef NDEBUG
|
||||
if ( const int QPCDays = GetPrivateProfileIntW(L"Debug", L"AddDaysToQPC", 0, wcModulePath); QPCDays != 0 )
|
||||
{
|
||||
|
@ -3364,12 +3373,6 @@ void Patch_SA_10()
|
|||
InjectHook( 0x6E2B6E, RecordVehicleDeleted_AndRemoveFromVehicleList );
|
||||
|
||||
|
||||
// Modulo over CLoadingScreen::m_currDisplayedSplash
|
||||
Nop( 0x590ADE, 1 );
|
||||
InjectHook( 0x590ADE + 1, DoPCScreenChange_Mod, PATCH_CALL );
|
||||
Patch<const void*>( 0x590042 + 2, &currDisplayedSplash_ForLastSplash );
|
||||
|
||||
|
||||
// Don't include an extra D3DLIGHT on vehicles since we fixed directional already
|
||||
// By aap
|
||||
Patch<float>(0x5D88D1 + 6, 0);
|
||||
|
|
Loading…
Reference in a new issue