From dcc674febd2cafb29cef14c4937dbb077c72734a Mon Sep 17 00:00:00 2001 From: Tillmann Karras Date: Sun, 17 Dec 2023 14:44:31 +0000 Subject: [PATCH] GameSettings: fix C4 texture tiling in Crash Nitro Kart For buttons and some character icons the game loads palleted PNGs and tiles the pallet indices directly into C4 textures but fails to take into account that PNG and C4 use opposite nibble orders. This causes adjacent pixel columns to be swapped, see issue 13370. Also disable Immediate XFB for the Japanese release. It has the same black screen and flickering issues as the other regions. --- Data/Sys/GameSettings/GC8JA4.ini | 24 ++++++++++++++++++++++++ Data/Sys/GameSettings/GCN.ini | 6 ++++++ 2 files changed, 30 insertions(+) create mode 100644 Data/Sys/GameSettings/GC8JA4.ini diff --git a/Data/Sys/GameSettings/GC8JA4.ini b/Data/Sys/GameSettings/GC8JA4.ini new file mode 100644 index 0000000000..1fb765408f --- /dev/null +++ b/Data/Sys/GameSettings/GC8JA4.ini @@ -0,0 +1,24 @@ +# GC8JA4 - クラッシュ・バンディクー 爆走!ニトロカート + +[Core] +# Values set here will override the main Dolphin settings. + +[OnLoad] +# Add memory patches to be loaded once on boot here. + +[OnFrame] +# Add memory patches to be applied every frame here. + +[ActionReplay] +# Add action replay cheats here. +$Fix C4 texture tiling (used for buttons and some character icons) +0400328C 7D0340AE +04003290 5108452E +04003294 5508E13E +04003298 4E800020 +040CA1B4 4BF390D9 + +[Video_Settings] + +[Video_Hacks] +ImmediateXFBEnable = False diff --git a/Data/Sys/GameSettings/GCN.ini b/Data/Sys/GameSettings/GCN.ini index dd91e91734..1db5e2472c 100644 --- a/Data/Sys/GameSettings/GCN.ini +++ b/Data/Sys/GameSettings/GCN.ini @@ -11,6 +11,12 @@ [ActionReplay] # Add action replay cheats here. +$Fix C4 texture tiling (used for buttons and some character icons) +0400328C 7D0340AE +04003290 5108452E +04003294 5508E13E +04003298 4E800020 +040CC574 4BF36D19 [Video_Settings]