From 19a01e5e33a982cba98f8924984646bcfdb7ed88 Mon Sep 17 00:00:00 2001 From: Boomslangnz Date: Sun, 24 Apr 2022 10:15:54 +1200 Subject: [PATCH] BG4 Tuned - Fix freeplay menu issue etc and added window title --- .../src/Functions/Games/TypeX2/BattleGear4InputMisc.cpp | 8 +------- OpenParrot/src/Functions/Games/TypeX2/TypeX2Generic.cpp | 3 +++ 2 files changed, 4 insertions(+), 7 deletions(-) diff --git a/OpenParrot/src/Functions/Games/TypeX2/BattleGear4InputMisc.cpp b/OpenParrot/src/Functions/Games/TypeX2/BattleGear4InputMisc.cpp index a91c0c0..9b779fe 100644 --- a/OpenParrot/src/Functions/Games/TypeX2/BattleGear4InputMisc.cpp +++ b/OpenParrot/src/Functions/Games/TypeX2/BattleGear4InputMisc.cpp @@ -78,9 +78,7 @@ void BG4ManualHack(Helpers* helpers) //Hack to allow us to select Manual if (MenuTime == 0x1194) { if (!MenuHack) - { MenuHack = true; - } } if (MenuTime == 0x00) @@ -117,17 +115,13 @@ static void BG4ProManualHack(Helpers* helpers) //Hack to allow us to select Manu if (VehicleSelection) { if (!MenuHack) - { MenuHack = true; - } } if (MenuTime == 0x00) { if (MenuHack) - { MenuHack = false; - } } if (MenuHack) @@ -152,7 +146,7 @@ void BG4ProInputs(Helpers* helpers) if (!init) { imageBase = (DWORD)GetModuleHandleA(0); - UINT8 WaitForAttract = helpers->ReadByte(0x42D964, true); + UINT8 WaitForAttract = helpers->ReadByte(0x42E386, true); if (WaitForAttract) { diff --git a/OpenParrot/src/Functions/Games/TypeX2/TypeX2Generic.cpp b/OpenParrot/src/Functions/Games/TypeX2/TypeX2Generic.cpp index 2ed7316..5bdd1fb 100644 --- a/OpenParrot/src/Functions/Games/TypeX2/TypeX2Generic.cpp +++ b/OpenParrot/src/Functions/Games/TypeX2/TypeX2Generic.cpp @@ -517,6 +517,9 @@ static InitFunction initFunction([]() // Fix sound only being in left ear injector::WriteMemoryRaw(imageBase + 0x36C3DC, "\x00\x60\xA9\x45", 4, true); + // Rename window name + injector::WriteMemoryRaw(imageBase + 0x36B790, "\x4F\x70\x65\x6E\x50\x61\x72\x72\x6F\x74\x20\x2D\x20\x42\x61\x74\x74\x6C\x65\x20\x47\x65\x61\x72\x20\x34\x20\x54\x75\x6E\x65\x64", 37, true); + if (ToBool(config["General"]["IntroFix"])) { // thanks for Ducon2016 for the patch!