From 614c535f5e84782b8c059d2e5bc88593f550d236 Mon Sep 17 00:00:00 2001 From: Mrlinkwii Date: Sun, 30 Oct 2022 11:25:06 +0000 Subject: [PATCH] Gamedb: add WRC4 patch to NTSC-J version --- bin/resources/GameIndex.yaml | 40 ++++++++++++++++++++++++++++++++++++ 1 file changed, 40 insertions(+) diff --git a/bin/resources/GameIndex.yaml b/bin/resources/GameIndex.yaml index 5e3982ab47..286b82c4c9 100644 --- a/bin/resources/GameIndex.yaml +++ b/bin/resources/GameIndex.yaml @@ -29362,6 +29362,26 @@ SLPM-65974: SLPM-65975: name: "WRC 4" region: "NTSC-J" + gameFixes: + - XGKickHack # Fixes SPS. + patches: + default: + content: |- + author=kozarovv + // Proper patch for WRC 4. CRC independent. + // I wrote a small runtime that moves unpacker higher right after emulator boot. + // Seems little bit extensive, but there is no way to make it smaller. + // Solves TLB miss errors which prevented the game from booting. + patch=0,EE,0040000C,double,3c0500603cc70054 + patch=0,EE,00400014,double,24a5001024840010 + patch=0,EE,0040001C,double,7ca6000078860000 + patch=0,EE,00400024,double,000000001487fffb + patch=0,EE,0040002c,double,000000000817fff5 + patch=0,EE,005fffd4,double,3c1c70003c040060 + patch=0,EE,005fffdc,double,3c0700003c067000 + patch=0,EE,005fffe4,double,279c000024840800 + patch=0,EE,005fffec,double,24e7100024c60080 + patch=0,EE,005ffff4,double,00c7e8200818000c gsHWFixes: autoFlush: 1 # Fixes car shadows. roundSprite: 1 # Fixes misalgined text. @@ -30656,6 +30676,26 @@ SLPM-66333: SLPM-66334: name: "WRC 4 [Spike the Best]" region: "NTSC-J" + gameFixes: + - XGKickHack # Fixes SPS. + patches: + default: + content: |- + author=kozarovv + // Proper patch for WRC 4. CRC independent. + // I wrote a small runtime that moves unpacker higher right after emulator boot. + // Seems little bit extensive, but there is no way to make it smaller. + // Solves TLB miss errors which prevented the game from booting. + patch=0,EE,0040000C,double,3c0500603cc70054 + patch=0,EE,00400014,double,24a5001024840010 + patch=0,EE,0040001C,double,7ca6000078860000 + patch=0,EE,00400024,double,000000001487fffb + patch=0,EE,0040002c,double,000000000817fff5 + patch=0,EE,005fffd4,double,3c1c70003c040060 + patch=0,EE,005fffdc,double,3c0700003c067000 + patch=0,EE,005fffe4,double,279c000024840800 + patch=0,EE,005fffec,double,24e7100024c60080 + patch=0,EE,005ffff4,double,00c7e8200818000c gsHWFixes: autoFlush: 1 # Fixes car shadows. roundSprite: 1 # Fixes misalgined text.