From f2f0f373a6c22d0e522be783afa111306861e189 Mon Sep 17 00:00:00 2001 From: skidau Date: Fri, 5 Nov 2010 20:58:27 +0000 Subject: [PATCH] Fixed GeckoCodes.org retrieval for WiiWare. Fixes issue 3438. git-svn-id: https://dolphin-emu.googlecode.com/svn/trunk@6348 8ced0084-cf51-0410-be5f-012b33b47a6e --- Source/Core/DolphinWX/Src/GeckoCodeDiag.cpp | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/Source/Core/DolphinWX/Src/GeckoCodeDiag.cpp b/Source/Core/DolphinWX/Src/GeckoCodeDiag.cpp index 1b19d27436..e276d31131 100644 --- a/Source/Core/DolphinWX/Src/GeckoCodeDiag.cpp +++ b/Source/Core/DolphinWX/Src/GeckoCodeDiag.cpp @@ -138,8 +138,14 @@ void CodeConfigPanel::DownloadCodes(wxCommandEvent&) if (m_gameid.empty()) return; + std::string gameid = m_gameid; + + // WiiWare are identified by their first four characters + if (m_gameid[0] == 'W') + gameid = m_gameid.substr(0, 4); + sf::Http::Request req; - req.SetURI("/txt.php?txt=" + m_gameid); + req.SetURI("/txt.php?txt=" + gameid); sf::Http http; http.SetHost("geckocodes.org");