From 7b070377232b1302638f692db48e82daf112b8c8 Mon Sep 17 00:00:00 2001 From: JMC47 Date: Mon, 2 Aug 2021 21:17:33 -0400 Subject: [PATCH] GameINI: SpongeBob SquarePants: BFBB QoL This enables Vertex Rounding Hack and has a game patch for two bugs resulting from game choices. The game draws an efb copy at coordinate 0.00195313 to 1.00195 repeating which only works due to how the numbers work out at low resolution. The Vertex Rounding Hack is a null operation on 1x IR, so there should be no concern enabling it by default since higher resolutions are completely broken without it. --- Data/Sys/GameSettings/GQP.ini | 18 ++++++++++++++++++ Data/Sys/GameSettings/GQPE78.ini | 14 ++++++++++++++ Data/Sys/GameSettings/GQPP78.ini | 14 ++++++++++++++ 3 files changed, 46 insertions(+) create mode 100644 Data/Sys/GameSettings/GQP.ini create mode 100644 Data/Sys/GameSettings/GQPE78.ini create mode 100644 Data/Sys/GameSettings/GQPP78.ini diff --git a/Data/Sys/GameSettings/GQP.ini b/Data/Sys/GameSettings/GQP.ini new file mode 100644 index 0000000000..a01a32adb0 --- /dev/null +++ b/Data/Sys/GameSettings/GQP.ini @@ -0,0 +1,18 @@ +# GQPP78, GQPE78 - SpongeBob SquarePants: Battle for Bikini Bottom + +[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. + +[Video_Hacks] +# Fixes shadows at higher resolution. +# Option has no effect at 1x IR, so no reason not to enable. +VertexRounding = True diff --git a/Data/Sys/GameSettings/GQPE78.ini b/Data/Sys/GameSettings/GQPE78.ini new file mode 100644 index 0000000000..61d50ed753 --- /dev/null +++ b/Data/Sys/GameSettings/GQPE78.ini @@ -0,0 +1,14 @@ +# GQPE78 - SpongeBob SquarePants: Battle for Bikini Bottom + +[OnFrame] +$EFB Copy Fix +0x803CD04C:byte:0x00000000 + +[OnFrame_Enabled] +# This game renders an EFB copy with texture repeating enabled +# and it draws from texture coordinate 0.00195313 to 1.00195. +# This only works on console and 1x IR due to low precision. +# "EFB Copy Fix" adjusts the region to not cause bugs at higher +# resolutions. In order for this patch to fully work, the +# Vertex Rounding Hack must be enabled. +$EFB Copy Fix diff --git a/Data/Sys/GameSettings/GQPP78.ini b/Data/Sys/GameSettings/GQPP78.ini new file mode 100644 index 0000000000..dd3ee36e7d --- /dev/null +++ b/Data/Sys/GameSettings/GQPP78.ini @@ -0,0 +1,14 @@ +# GQPP78 - SpongeBob SquarePants: Battle for Bikini Bottom + +[OnFrame] +$EFB Copy Fix +0x803CD414:byte:0x00000000 + +[OnFrame_Enabled] +# This game renders an EFB copy with texture repeating enabled +# and it draws from texture coordinate 0.00195313 to 1.00195. +# This only works on console and 1x IR due to low precision. +# "EFB Copy Fix" adjusts the region to not cause bugs at higher +# resolutions. In order for this patch to fully work, the +# Vertex Rounding Hack must be enabled. +$EFB Copy Fix