From 8842a0f402ffe60a80ce7894bfd36afd039009fc Mon Sep 17 00:00:00 2001 From: JosJuice Date: Sat, 23 Feb 2019 17:49:06 +0100 Subject: Keep track of GameTDB ID separately from game ID The difference between Dolphin's game IDs and GameTDB's game IDs is that GameTDB uses four characters for non-disc titles, whereas Dolphin uses six characters for all titles. This fixes: - TitleDatabase considering Datel discs to be NHL Hitz 2002 - Gecko code downloading not working for discs with IDs starting with P - Cover downloading mixing up discs with channels (e.g. Mario Kart Wii and Mario Kart Channel) and making extra HTTP requests. (Android was actually doing a better job at this than DolphinQt!) --- Source/Core/DolphinQt/Config/GeckoCodeWidget.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'Source/Core/DolphinQt/Config/GeckoCodeWidget.cpp') diff --git a/Source/Core/DolphinQt/Config/GeckoCodeWidget.cpp b/Source/Core/DolphinQt/Config/GeckoCodeWidget.cpp index d60c374702..e320b32347 100755 --- a/Source/Core/DolphinQt/Config/GeckoCodeWidget.cpp +++ b/Source/Core/DolphinQt/Config/GeckoCodeWidget.cpp @@ -26,8 +26,8 @@ #include "UICommon/GameFile.h" GeckoCodeWidget::GeckoCodeWidget(const UICommon::GameFile& game, bool restart_required) - : m_game(game), m_game_id(game.GetGameID()), m_game_revision(game.GetRevision()), - m_restart_required(restart_required) + : m_game(game), m_game_id(game.GetGameID()), m_gametdb_id(game.GetGameTDBID()), + m_game_revision(game.GetRevision()), m_restart_required(restart_required) { CreateWidgets(); ConnectWidgets(); @@ -251,7 +251,7 @@ void GeckoCodeWidget::DownloadCodes() { bool success; - std::vector codes = Gecko::DownloadCodes(m_game_id, &success); + std::vector codes = Gecko::DownloadCodes(m_gametdb_id, &success); if (!success) { -- cgit v1.2.3