From 88034b176cab675954505aaa261db7006abcffc9 Mon Sep 17 00:00:00 2001 From: Mrlinkwii Date: Tue, 14 Feb 2023 21:35:27 +0000 Subject: [PATCH] GS-HW:purge MetalSlug6 CRC --- pcsx2/GS/Renderers/HW/GSHwHack.cpp | 25 ------------------------- pcsx2/GS/Renderers/HW/GSHwHack.h | 1 - 2 files changed, 26 deletions(-) diff --git a/pcsx2/GS/Renderers/HW/GSHwHack.cpp b/pcsx2/GS/Renderers/HW/GSHwHack.cpp index 25cc044765..6e0204fc8f 100644 --- a/pcsx2/GS/Renderers/HW/GSHwHack.cpp +++ b/pcsx2/GS/Renderers/HW/GSHwHack.cpp @@ -1036,30 +1036,6 @@ bool GSHwHack::OI_FFX(GSRendererHW& r, GSTexture* rt, GSTexture* ds, GSTextureCa return true; } -bool GSHwHack::OI_MetalSlug6(GSRendererHW& r, GSTexture* rt, GSTexture* ds, GSTextureCache::Source* t) -{ - // missing red channel fix (looks alright in pcsx2 r5000+) - - GSVertex* RESTRICT v = r.m_vertex.buff; - - for (size_t i = r.m_vertex.next; i > 0; i--, v++) - { - const u32 c = v->RGBAQ.U32[0]; - - const u32 r = (c >> 0) & 0xff; - const u32 g = (c >> 8) & 0xff; - const u32 b = (c >> 16) & 0xff; - - if (r == 0 && g != 0 && b != 0) - { - v->RGBAQ.U32[0] = (c & 0xffffff00) | ((g + b + 1) >> 1); - } - } - - r.m_vt.Update(r.m_vertex.buff, r.m_index.buff, r.m_vertex.tail, r.m_index.tail, r.m_vt.m_primclass); - - return true; -} bool GSHwHack::OI_RozenMaidenGebetGarden(GSRendererHW& r, GSTexture* rt, GSTexture* ds, GSTextureCache::Source* t) { @@ -1322,7 +1298,6 @@ const GSHwHack::Entry GSHwHack::s_before_draw_functions[] CRC_F(OI_DBZBTGames, CRCHackLevel::Minimum), CRC_F(OI_FFXII, CRCHackLevel::Minimum), CRC_F(OI_FFX, CRCHackLevel::Minimum), - CRC_F(OI_MetalSlug6, CRCHackLevel::Minimum), CRC_F(OI_RozenMaidenGebetGarden, CRCHackLevel::Minimum), CRC_F(OI_SonicUnleashed, CRCHackLevel::Minimum), CRC_F(OI_ArTonelico2, CRCHackLevel::Minimum), diff --git a/pcsx2/GS/Renderers/HW/GSHwHack.h b/pcsx2/GS/Renderers/HW/GSHwHack.h index 8c6f16f36d..c9b0a5b405 100644 --- a/pcsx2/GS/Renderers/HW/GSHwHack.h +++ b/pcsx2/GS/Renderers/HW/GSHwHack.h @@ -63,7 +63,6 @@ public: static bool OI_DBZBTGames(GSRendererHW& r, GSTexture* rt, GSTexture* ds, GSTextureCache::Source* t); static bool OI_FFXII(GSRendererHW& r, GSTexture* rt, GSTexture* ds, GSTextureCache::Source* t); static bool OI_FFX(GSRendererHW& r, GSTexture* rt, GSTexture* ds, GSTextureCache::Source* t); - static bool OI_MetalSlug6(GSRendererHW& r, GSTexture* rt, GSTexture* ds, GSTextureCache::Source* t); static bool OI_RozenMaidenGebetGarden(GSRendererHW& r, GSTexture* rt, GSTexture* ds, GSTextureCache::Source* t); static bool OI_SonicUnleashed(GSRendererHW& r, GSTexture* rt, GSTexture* ds, GSTextureCache::Source* t); static bool OI_ArTonelico2(GSRendererHW& r, GSTexture* rt, GSTexture* ds, GSTextureCache::Source* t);