From 0dbe2819821baaf79a2b9814c8889da09e961cc7 Mon Sep 17 00:00:00 2001 From: Silent Date: Sun, 22 Sep 2019 14:44:07 +0200 Subject: [PATCH] SA newsteam/RGL: Default Steer with Mouse to disabled --- SilentPatchSA/SilentPatchSA.cpp | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/SilentPatchSA/SilentPatchSA.cpp b/SilentPatchSA/SilentPatchSA.cpp index 6b02cdc..b96fd22 100644 --- a/SilentPatchSA/SilentPatchSA.cpp +++ b/SilentPatchSA/SilentPatchSA.cpp @@ -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 } ); + } }