From 69657ef05e5a317c4f1f126bfd5424606603acb1 Mon Sep 17 00:00:00 2001 From: Linblow <8434205+Linblow@users.noreply.github.com> Date: Sat, 17 Jul 2021 12:59:15 +0200 Subject: [PATCH] Added JIT hack for MTX MotoTrax EU (ported from US) --- Core/CwCheat.cpp | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/Core/CwCheat.cpp b/Core/CwCheat.cpp index 5605601ff0..0a348cf089 100644 --- a/Core/CwCheat.cpp +++ b/Core/CwCheat.cpp @@ -338,10 +338,14 @@ void hleCheat(u64 userdata, int cyclesLate) { } else if (gameTitle == "ULES00033" || gameTitle == "ULES00034" || gameTitle == "ULES00035") { // euro, also 34 and 35 cheatEngine->InvalidateICache(0x088655D8, 72); cheatEngine->InvalidateICache(0x08865668, 4); - } else if (gameTitle == "ULUS10138") { // MTX MotoTrax. No hack for ULES00581 known. + } else if (gameTitle == "ULUS10138") { // MTX MotoTrax US cheatEngine->InvalidateICache(0x0886DCC0, 72); cheatEngine->InvalidateICache(0x0886DC20, 4); cheatEngine->InvalidateICache(0x0886DD40, 4); + } else if (gameTitle == "ULES00581") { // MTX MotoTrax EU (ported from US cwcheat codes) + cheatEngine->InvalidateICache(0x0886E1D8, 72); + cheatEngine->InvalidateICache(0x0886E138, 4); + cheatEngine->InvalidateICache(0x0886E258, 4); } }