From 52be8001d14f9a22949324ae6de92ee7703821fb Mon Sep 17 00:00:00 2001 From: Silent Date: Sat, 18 Mar 2017 15:15:57 +0100 Subject: [PATCH] fix 1.0 eu crash --- SilentPatchSA/SilentPatchSA.cpp | 28 ++++++++++++++-------------- 1 file changed, 14 insertions(+), 14 deletions(-) diff --git a/SilentPatchSA/SilentPatchSA.cpp b/SilentPatchSA/SilentPatchSA.cpp index 7c9b7cb..ff0b4d5 100644 --- a/SilentPatchSA/SilentPatchSA.cpp +++ b/SilentPatchSA/SilentPatchSA.cpp @@ -3042,21 +3042,21 @@ void Patch_SA_10() // Don't catch WM_SYSKEYDOWN and WM_SYSKEYUP (fixes Alt+F4) - InjectHook( 0x748220, 0x748446, PATCH_JUMP ); - Patch( 0x7481E3, 0x5C ); // esi -> ebx - Patch( 0x7481EA, 0x53 ); // esi -> ebx - Patch( 0x74820D, 0xFB ); // esi -> ebx - Patch( 0x7481EF, 0x54-0x3C ); // use stack space for new lParam - Patch( 0x748200, 0x4C-0x3C ); // use stack space for new lParam - Patch( 0x748214, 0x4C-0x3C ); // use stack space for new lParam + InjectHook( AddressByRegion_10(0x748220), AddressByRegion_10(0x748446), PATCH_JUMP ); + Patch( AddressByRegion_10(0x7481E3), 0x5C ); // esi -> ebx + Patch( AddressByRegion_10(0x7481EA), 0x53 ); // esi -> ebx + Patch( AddressByRegion_10(0x74820D), 0xFB ); // esi -> ebx + Patch( AddressByRegion_10(0x7481EF), 0x54-0x3C ); // use stack space for new lParam + Patch( AddressByRegion_10(0x748200), 0x4C-0x3C ); // use stack space for new lParam + Patch( AddressByRegion_10(0x748214), 0x4C-0x3C ); // use stack space for new lParam - InjectHook( 0x74826A, 0x748446, PATCH_JUMP ); - Patch( 0x74822D, 0x5C ); // esi -> ebx - Patch( 0x748234, 0x53 ); // esi -> ebx - Patch( 0x748257, 0xFB ); // esi -> ebx - Patch( 0x748239, 0x54-0x3C ); // use stack space for new lParam - Patch( 0x74824A, 0x4C-0x3C ); // use stack space for new lParam - Patch( 0x74825E, 0x4C-0x3C ); // use stack space for new lParam + InjectHook( AddressByRegion_10(0x74826A), AddressByRegion_10(0x748446), PATCH_JUMP ); + Patch( AddressByRegion_10(0x74822D), 0x5C ); // esi -> ebx + Patch( AddressByRegion_10(0x748234), 0x53 ); // esi -> ebx + Patch( AddressByRegion_10(0x748257), 0xFB ); // esi -> ebx + Patch( AddressByRegion_10(0x748239), 0x54-0x3C ); // use stack space for new lParam + Patch( AddressByRegion_10(0x74824A), 0x4C-0x3C ); // use stack space for new lParam + Patch( AddressByRegion_10(0x74825E), 0x4C-0x3C ); // use stack space for new lParam // Reinit CCarCtrl fields (firetruck and ambulance generation)