SA newsteam/RGL: Default Steer with Mouse to disabled

This commit is contained in:
Silent 2019-09-22 14:44:07 +02:00
parent 37957a1256
commit 0dbe281982
No known key found for this signature in database
GPG key ID: AE53149BB0C45AF1

View file

@ -5546,6 +5546,14 @@ void Patch_SA_NewBinaries_Common()
InjectHook( setGermanGame, SetUncensoredGame, PATCH_JUMP );
InjectHook( setFrenchGame, SetUncensoredGame, PATCH_JUMP );
}
// Default Steer with Mouse to disabled, like in older executables not based on xbox
{
// mov _ZN8CVehicle22m_bEnableMouseSteeringE, bl ->
// mov _ZN8CVehicle22m_bEnableMouseSteeringE, al
void* setDefaultPreferences = get_pattern( "89 86 AD 00 00 00 66 89 86 B1 00 00 00", -0xC );
Patch( setDefaultPreferences, { 0x90, 0xA2 } );
}
}