From 4e5db277b3987e5568d332f77f2fd5fb324ae9fb Mon Sep 17 00:00:00 2001 From: Aaron M Date: Thu, 13 May 2021 19:31:36 +1200 Subject: [PATCH] H2Overdrive - stop game modifying ip address even if network enabled is unticked now too --- OpenParrot/src/Functions/Games/Other/H2Overdrive.cpp | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/OpenParrot/src/Functions/Games/Other/H2Overdrive.cpp b/OpenParrot/src/Functions/Games/Other/H2Overdrive.cpp index 7222b24..b829513 100644 --- a/OpenParrot/src/Functions/Games/Other/H2Overdrive.cpp +++ b/OpenParrot/src/Functions/Games/Other/H2Overdrive.cpp @@ -404,8 +404,6 @@ static InitFunction H2OverdriveFunc([]() if (ToBool(config["Network"]["Enable"])) { injector::MakeNOP(0xF78AE + BaseAddress10, 6); // Stop game writing to cabinet id values - injector::MakeNOP(0x1457F3 + BaseAddress10, 5); // Stop game adding certain ips if user has specific adapter - injector::MakeNOP(0x1457FB + BaseAddress10, 5); // Stop game adding certain ips if user has specific adapter int PC1 = FetchDwordInformation("Network", "Cabinet 1 IP X.X.X.???", 256); int PC2 = FetchDwordInformation("Network", "Cabinet 2 IP X.X.X.???", 256); @@ -430,6 +428,9 @@ static InitFunction H2OverdriveFunc([]() if (PC8 > 0 && PC8 < 256) injector::WriteMemory((0x329728 + BaseAddress10) + PC8, 0x08, true); } + injector::MakeNOP(0x1457F3 + BaseAddress10, 5); // Stop game adding certain ips if user has specific adapter + injector::MakeNOP(0x1457FB + BaseAddress10, 5); // Stop game adding certain ips if user has specific adapter + CreateThread(NULL, 0, InputRT10, NULL, 0, NULL); }, GameID::H2Overdrive);