From 5a067769999eccb8d4abe83eecad4314d5fa7406 Mon Sep 17 00:00:00 2001 From: LunaMoo Date: Mon, 4 Jul 2022 00:58:48 +0200 Subject: [PATCH] Change hack names and edit comments based on feedback. --- Core/Compatibility.cpp | 4 ++-- Core/Compatibility.h | 4 ++-- Core/HLE/ReplaceTables.cpp | 6 +++--- Core/MIPS/MIPSAnalyst.cpp | 2 +- assets/compat.ini | 9 ++++----- 5 files changed, 12 insertions(+), 13 deletions(-) diff --git a/Core/Compatibility.cpp b/Core/Compatibility.cpp index 8edbf89514..352bb4a5e5 100644 --- a/Core/Compatibility.cpp +++ b/Core/Compatibility.cpp @@ -66,8 +66,8 @@ void Compatibility::CheckSettings(IniFile &iniFile, const std::string &gameID) { CheckSetting(iniFile, gameID, "YugiohSaveFix", &flags_.YugiohSaveFix); CheckSetting(iniFile, gameID, "ForceUMDDelay", &flags_.ForceUMDDelay); CheckSetting(iniFile, gameID, "ForceMax60FPS", &flags_.ForceMax60FPS); - CheckSetting(iniFile, gameID, "Fixed60FPShack", &flags_.Fixed60FPShack); - CheckSetting(iniFile, gameID, "Fixed30FPShack", &flags_.Fixed30FPShack); + CheckSetting(iniFile, gameID, "GoWFramerateHack60", &flags_.GoWFramerateHack60); + CheckSetting(iniFile, gameID, "GoWFramerateHack30", &flags_.GoWFramerateHack30); CheckSetting(iniFile, gameID, "JitInvalidationHack", &flags_.JitInvalidationHack); CheckSetting(iniFile, gameID, "HideISOFiles", &flags_.HideISOFiles); CheckSetting(iniFile, gameID, "MoreAccurateVMMUL", &flags_.MoreAccurateVMMUL); diff --git a/Core/Compatibility.h b/Core/Compatibility.h index fb2078e585..eefc870442 100644 --- a/Core/Compatibility.h +++ b/Core/Compatibility.h @@ -65,8 +65,8 @@ struct CompatFlags { bool YugiohSaveFix; bool ForceUMDDelay; bool ForceMax60FPS; - bool Fixed60FPShack; - bool Fixed30FPShack; + bool GoWFramerateHack60; + bool GoWFramerateHack30; bool JitInvalidationHack; bool HideISOFiles; bool MoreAccurateVMMUL; diff --git a/Core/HLE/ReplaceTables.cpp b/Core/HLE/ReplaceTables.cpp index e634a1e581..88e98c9a78 100644 --- a/Core/HLE/ReplaceTables.cpp +++ b/Core/HLE/ReplaceTables.cpp @@ -1341,8 +1341,8 @@ static int Hook_soltrigger_render_ucschar() { } static int Hook_gow_fps_hack() { - if (PSP_CoreParameter().compat.flags().Fixed60FPShack || PSP_CoreParameter().compat.flags().Fixed30FPShack) { - if (PSP_CoreParameter().compat.flags().Fixed30FPShack) { + if (PSP_CoreParameter().compat.flags().GoWFramerateHack60 || PSP_CoreParameter().compat.flags().GoWFramerateHack30) { + if (PSP_CoreParameter().compat.flags().GoWFramerateHack30) { __DisplayWaitForVblanks("vblank start waited", 2); } else { __DisplayWaitForVblanks("vblank start waited", 1); @@ -1352,7 +1352,7 @@ static int Hook_gow_fps_hack() { } static int Hook_gow_vortex_hack() { - if (PSP_CoreParameter().compat.flags().Fixed60FPShack) { + if (PSP_CoreParameter().compat.flags().GoWFramerateHack60) { //from my tests ==0x3F800000 takes around 1:50s, when != it's roughtly 2:50s and that seems more correct if (currentMIPS->r[MIPS_REG_S1] == 0 && currentMIPS->r[MIPS_REG_A0] == 0xC0 && currentMIPS->r[MIPS_REG_T4] != 0x3F800000) { currentMIPS->r[MIPS_REG_S1] = 1; diff --git a/Core/MIPS/MIPSAnalyst.cpp b/Core/MIPS/MIPSAnalyst.cpp index 0630a91fee..63599a758c 100644 --- a/Core/MIPS/MIPSAnalyst.cpp +++ b/Core/MIPS/MIPSAnalyst.cpp @@ -508,7 +508,7 @@ static const HardHashTableEntry hardcodedHashes[] = { { 0xffc8f5f8f946152c, 192, "dl_write_light_color", }, { 0x249a3c5981c73480, 1472, "openseason_data_decode", }, // Open Season { 0x795d940ad0a605f8, 40, "gow_fps_hack", }, // God of War (all) - { 0x4c75043b7b0c643b, 512, "gow_vortex_hack", } // God of War: Ghost of Sparta vortex timer hack, still wrong, but it's a start + { 0x4c75043b7b0c643b, 512, "gow_vortex_hack", } // God of War: Ghost of Sparta vortex timer hack, avoids softlock #8299 }; namespace MIPSAnalyst { diff --git a/assets/compat.ini b/assets/compat.ini index 94b4e495c8..2dfca6243d 100644 --- a/assets/compat.ini +++ b/assets/compat.ini @@ -802,10 +802,9 @@ ULJS00119 = true ULKS46167 = true NPJH50017 = true -[Fixed60FPShack] +[GoWFramerateHack60] # Replaces ForceMax60FPS for GOW games, should provide smoother experience -# Unfortunately just like the latter still causes softlock in GOW:GOS , see #8299 -# Worked around by another hack, but still have to work on that +# Also works around softlock in GOW:GOS , see #8299 # GOW : Ghost of Sparta UCUS98737 = true UCAS40323 = true @@ -839,8 +838,8 @@ UCUS98705 = true UCED00971 = true UCUS98713 = true -[Fixed30FPShack] -# As the 60 fps version, but makes the GOW run on a potato, +[GoWFramerateHack30] +# As the 60 fps version, but makes GOW games run on a potato, # Doesn't suffer from softlock #8299 # disabled by default since most people wouldn't need it # GOW : Ghost of Sparta