Modulo over CLoadingScreen::m_currDisplayedSplash - imfast compatible

This commit is contained in:
Silent 2017-12-22 01:07:51 +01:00
parent 73150fcefa
commit 01f7c39d1e

View file

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