From f7102d431cafddde204936fde2dd607700baeb83 Mon Sep 17 00:00:00 2001 From: doomertheboomer Date: Wed, 13 Jul 2022 12:04:53 +0700 Subject: [PATCH] Fix crashing when at the end of time attack by patching a jump --- OpenParrot/src/Functions/Games/ES3X/WMMT6.cpp | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/OpenParrot/src/Functions/Games/ES3X/WMMT6.cpp b/OpenParrot/src/Functions/Games/ES3X/WMMT6.cpp index e6461af..17440af 100644 --- a/OpenParrot/src/Functions/Games/ES3X/WMMT6.cpp +++ b/OpenParrot/src/Functions/Games/ES3X/WMMT6.cpp @@ -429,8 +429,8 @@ extern int* ffbOffset4; typedef INT (WSAAPI* WsaStringToAddressA_t)(LPSTR, INT, LPWSAPROTOCOL_INFOA, LPSOCKADDR, LPINT); static WsaStringToAddressA_t gWsaStringToAddressA; -#define LOCAL_IP "192.168.0.109" -#define ROUTER_IP "192.168.0.1" +#define LOCAL_IP "192.168.100.10" +#define ROUTER_IP "192.168.100.1" #define LOCALHOST "127.0.0.1" static INT WSAAPI Hook_WsaStringToAddressA( @@ -886,6 +886,9 @@ static InitFunction Wmmt6Func([]() // Fix dongle error (can be triggered by various USB hubs, dongles injector::MakeNOP(imageBase + 0x8C140F, 2, true); + //Fix crash when saving story mode and Time attack, if the error isn't handled then it doesnt crash????? + injector::WriteMemory(imageBase + 0x8A6B5F, 0xEB, true); + // Save story stuff (only 05) { /*