Skip to content

Commit

Permalink
GSdx: Add Harry Potter and the Half-Blood Prince to automatic mipmapp…
Browse files Browse the repository at this point in the history
…ing.
  • Loading branch information
lightningterror committed Oct 19, 2018
1 parent df307be commit 6dca365
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 2 deletions.
2 changes: 2 additions & 0 deletions plugins/GSdx/GSCrc.cpp
Expand Up @@ -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
Expand Down
1 change: 1 addition & 0 deletions plugins/GSdx/GSCrc.h
Expand Up @@ -81,6 +81,7 @@ class CRC
GTConcept,
HarleyDavidson,
HarryPotterATCOS,
HarryPotterATHBP,
HarryPotterATPOA,
HarryPotterOOTP,
HauntingGround,
Expand Down
7 changes: 5 additions & 2 deletions plugins/GSdx/GSRendererHW.cpp
Expand Up @@ -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<HWMipmapLevel>("mipmap_hw") == HWMipmapLevel::Automatic) {
switch (CRC::Lookup(crc).title) {
if (theApp.GetConfigT<HWMipmapLevel>("mipmap_hw") == HWMipmapLevel::Automatic)
{
switch (CRC::Lookup(crc).title)
{
case CRC::AceCombatZero:
case CRC::AceCombat4:
case CRC::AceCombat5:
Expand All @@ -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:
Expand Down

0 comments on commit 6dca365

Please sign in to comment.