From c5f94fbced7d1fd7937952d2599e1470620107d3 Mon Sep 17 00:00:00 2001 From: lightningterror Date: Mon, 21 May 2018 02:27:29 +0200 Subject: [PATCH] GSdx: Adjust Spyro New Beginning crc hack. The hack should now work on the PAL version as well. --- plugins/GSdx/GSHwHack.cpp | 4 ++-- plugins/GSdx/GSRendererHW.cpp | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/plugins/GSdx/GSHwHack.cpp b/plugins/GSdx/GSHwHack.cpp index ae45f541fc..7a3e21834d 100644 --- a/plugins/GSdx/GSHwHack.cpp +++ b/plugins/GSdx/GSHwHack.cpp @@ -1813,7 +1813,7 @@ bool GSC_SpyroNewBeginning(const GSFrameInfo& fi, int& skip) { if(skip == 0) { - if(fi.TME && fi.FBP == fi.TBP0 && fi.FPSM == fi.TPSM && fi.TBP0 == 0x034a0 && fi.TPSM == PSM_PSMCT16) + if(fi.TME && fi.FBP == fi.TBP0 && fi.FPSM == fi.TPSM && (fi.TBP0 == 0x034a0 || fi.TBP0 == 0x03020) && fi.TPSM == PSM_PSMCT16) { skip = 2; } @@ -1826,7 +1826,7 @@ bool GSC_SpyroEternalNight(const GSFrameInfo& fi, int& skip) { if(skip == 0) { - if(fi.TME && fi.FBP == fi.TBP0 && fi.FPSM == fi.TPSM && (fi.TBP0 == 0x034a0 ||fi.TBP0 == 0x035a0 || fi.TBP0 == 0x036e0) && fi.TPSM == PSM_PSMCT16) + if(fi.TME && fi.FBP == fi.TBP0 && fi.FPSM == fi.TPSM && (fi.TBP0 == 0x034a0 || fi.TBP0 == 0x035a0 || fi.TBP0 == 0x036e0) && fi.TPSM == PSM_PSMCT16) { skip = 2; } diff --git a/plugins/GSdx/GSRendererHW.cpp b/plugins/GSdx/GSRendererHW.cpp index da6504591a..637fe146ca 100644 --- a/plugins/GSdx/GSRendererHW.cpp +++ b/plugins/GSdx/GSRendererHW.cpp @@ -1593,8 +1593,8 @@ bool GSRendererHW::OI_SpyroNewBeginning(GSTexture* rt, GSTexture* ds, GSTextureC if(PRIM->TME) { // Old code (FBP == 0x0 || FBP == 0x01180) - // First two TBP NTSC, other two PAL. - if((TBP == 0x37c0 || TBP == 0x3020 || TBP == 0x34a0 || TBP == 0x3a00) && FPSM == PSM_PSMCT32 && (m_vt.m_eq.z && m_vt.m_min.p.z == 0)) + // First two TBP PAL, other two NTSC. + if((TBP == 0x03020 || TBP == 0x037c0 || TBP == 0x034a0 || TBP == 0x03a00) && FPSM == PSM_PSMCT32 && (m_vt.m_eq.z && m_vt.m_min.p.z == 0)) { m_dev->ClearDepth(ds); }