diff --git a/source/GTA3.WidescreenFix/dllmain.cpp b/source/GTA3.WidescreenFix/dllmain.cpp index 298f867ca..7b03faae9 100644 --- a/source/GTA3.WidescreenFix/dllmain.cpp +++ b/source/GTA3.WidescreenFix/dllmain.cpp @@ -285,11 +285,11 @@ void RsSelectDeviceHook() void FixCoronas() { + auto pattern = hook::pattern("D8 0E D9 1E D9 05 ? ? ? ? D8 35 ? ? ? ? D8 0B D9 1B"); //0x51C46A + injector::WriteMemory(pattern.count(1).get(0).get(1), 0x0B, true); + if (bNoLightSquare) { - auto pattern = hook::pattern("D8 0E D9 1E D9 05 ? ? ? ? D8 35 ? ? ? ? D8 0B D9 1B"); //0x51C46A - injector::WriteMemory(pattern.count(1).get(0).get(1), 0x0B, true); - auto pfCAutoPreRender = (uint32_t)hook::pattern("81 EC F8 06 00 00 0F BF 45 5C 3D 83 00 00 00").count(1).get(0).get(0); auto pfCBrightLightsRegisterOne = (uint32_t)hook::pattern("D9 EE D9 EE 83 EC 20 8B 44 24").count(1).get(0).get(0); pattern = hook::range_pattern(pfCAutoPreRender, pfCAutoPreRender + 0x4309, "E8 ? ? ? ?"); diff --git a/source/GTAVC.WidescreenFix/dllmain.cpp b/source/GTAVC.WidescreenFix/dllmain.cpp index 88818e58d..b36eb9e3a 100644 --- a/source/GTAVC.WidescreenFix/dllmain.cpp +++ b/source/GTAVC.WidescreenFix/dllmain.cpp @@ -312,11 +312,11 @@ void RsSelectDeviceHook() void FixCoronas() { + auto pattern = hook::pattern("D8 0E D9 1E D9 05 ? ? ? ? D8 35 ? ? ? ? D8 0B D9 1B"); //0x57797A + injector::WriteMemory(pattern.count(1).get(0).get(1), 0x0B, true); + if (bNoLightSquare) { - auto pattern = hook::pattern("D8 0E D9 1E D9 05 ? ? ? ? D8 35 ? ? ? ? D8 0B D9 1B"); //0x57797A - injector::WriteMemory(pattern.count(1).get(0).get(1), 0x0B, true); - auto pfCAutoPreRender = (uint32_t)hook::pattern("FF 35 ? ? ? ? 50 8D 84 24 24 05 00").count(1).get(0).get(0); auto pfCBikePreRender = (uint32_t)hook::pattern("D9 83 FC 03 00 00 D8 1D ? ? ? ? DF E0 F6 C4 45").count(1).get(0).get(0); auto pfCBrightLightsRegisterOne = (uint32_t)hook::pattern("D9 EE D9 EE 83 EC 20 8B 44 24").count(1).get(0).get(0);