From 24684033caf248bc1536901d5475c72af2ee85e6 Mon Sep 17 00:00:00 2001 From: Gregory Hainaut Date: Fri, 14 Oct 2016 20:47:18 +0200 Subject: [PATCH] gsdx: enable clut_load_before_draw option on Harley Davidson (CRC hack) At least the game is good until we find how the HW really behave --- plugins/GSdx/GSCrc.cpp | 3 ++- plugins/GSdx/GSCrc.h | 1 + plugins/GSdx/GSState.cpp | 6 ++++++ 3 files changed, 9 insertions(+), 1 deletion(-) diff --git a/plugins/GSdx/GSCrc.cpp b/plugins/GSdx/GSCrc.cpp index 2da94e9222..4d97b33afa 100644 --- a/plugins/GSdx/GSCrc.cpp +++ b/plugins/GSdx/GSCrc.cpp @@ -510,7 +510,8 @@ CRC::Game CRC::m_games[] = {0x12804727, Jak3, EU, 0}, {0x644CFD03, Jak3, US, 0}, {0xDF659E77, JakX, EU, 0}, - {0x3091E6FB, JakX, US, 0}, // FIXME not sure on US + {0x3091E6FB, JakX, US, 0}, + {0x4653CA3E, HarleyDavidson, NoRegion, 0}, }; map CRC::m_map; diff --git a/plugins/GSdx/GSCrc.h b/plugins/GSdx/GSCrc.h index f8e39ee697..6a04c02706 100644 --- a/plugins/GSdx/GSCrc.h +++ b/plugins/GSdx/GSCrc.h @@ -173,6 +173,7 @@ public: Jak2, Jak3, JakX, + HarleyDavidson, TitleCount, }; diff --git a/plugins/GSdx/GSState.cpp b/plugins/GSdx/GSState.cpp index 4c6fa6b3b8..df9e6e3864 100644 --- a/plugins/GSdx/GSState.cpp +++ b/plugins/GSdx/GSState.cpp @@ -2497,6 +2497,12 @@ void GSState::SetGameCRC(uint32 crc, int options) m_options = options; m_game = CRC::Lookup(m_crc_hack_level ? crc : 0); SetupCrcHack(); + + // Until we find a solution that work for all games. + // (if a solution does exist) + if (m_game.title == CRC::HarleyDavidson) { + m_clut_load_before_draw = true; + } } //