From 6dca3656ed41ed07faee76b38b6048605c76d3f2 Mon Sep 17 00:00:00 2001 From: lightningterror Date: Fri, 19 Oct 2018 22:16:00 +0200 Subject: [PATCH] GSdx: Add Harry Potter and the Half-Blood Prince to automatic mipmapping. --- plugins/GSdx/GSCrc.cpp | 2 ++ plugins/GSdx/GSCrc.h | 1 + plugins/GSdx/GSRendererHW.cpp | 7 +++++-- 3 files changed, 8 insertions(+), 2 deletions(-) diff --git a/plugins/GSdx/GSCrc.cpp b/plugins/GSdx/GSCrc.cpp index 11cef0d0dd..2351fed3ca 100644 --- a/plugins/GSdx/GSCrc.cpp +++ b/plugins/GSdx/GSCrc.cpp @@ -557,6 +557,8 @@ CRC::Game CRC::m_games[] = {0x972719A3, FIFA05, EU, 0}, {0xC5473413, HarryPotterATCOS, NoRegion, 0}, // EU and US versions have the same CRC - Chamber Of Secrets {0xE90BE9F8, HarryPotterATCOS, JP, 0 }, // Coca Cola original Version + {0x9C3A84F4, HarryPotterATHBP, US, 0 }, // Half-Blood Prince + {0xCB598BC2, HarryPotterATHBP, EU, 0 }, {0x51E019BC, HarryPotterATPOA, NoRegion, 0 }, // EU and US versions have the same CRC - Prisoner of Azkaban {0x99A8B4FF, HarryPotterATPOA, KO, 0 }, {0xA8901AD6, HarryPotterATPOA, JP, 0 }, // Harry Potter to Azkaban no Shuujin diff --git a/plugins/GSdx/GSCrc.h b/plugins/GSdx/GSCrc.h index f9a4b98ead..1498810fab 100644 --- a/plugins/GSdx/GSCrc.h +++ b/plugins/GSdx/GSCrc.h @@ -81,6 +81,7 @@ public: GTConcept, HarleyDavidson, HarryPotterATCOS, + HarryPotterATHBP, HarryPotterATPOA, HarryPotterOOTP, HauntingGround, diff --git a/plugins/GSdx/GSRendererHW.cpp b/plugins/GSdx/GSRendererHW.cpp index b62ab405b5..486d22b537 100644 --- a/plugins/GSdx/GSRendererHW.cpp +++ b/plugins/GSdx/GSRendererHW.cpp @@ -195,8 +195,10 @@ void GSRendererHW::SetGameCRC(uint32 crc, int options) m_hacks.SetGameCRC(m_game); // Code for Automatic Mipmapping. Relies on game CRCs. - if (theApp.GetConfigT("mipmap_hw") == HWMipmapLevel::Automatic) { - switch (CRC::Lookup(crc).title) { + if (theApp.GetConfigT("mipmap_hw") == HWMipmapLevel::Automatic) + { + switch (CRC::Lookup(crc).title) + { case CRC::AceCombatZero: case CRC::AceCombat4: case CRC::AceCombat5: @@ -209,6 +211,7 @@ void GSRendererHW::SetGameCRC(uint32 crc, int options) case CRC::FIFA04: case CRC::FIFA05: case CRC::HarryPotterATCOS: + case CRC::HarryPotterATHBP: case CRC::HarryPotterATPOA: case CRC::HarryPotterOOTP: case CRC::Shox: