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
This commit is contained in:
skidau 2010-11-05 20:58:27 +00:00
parent 5436bef30b
commit f2f0f373a6
1 changed files with 7 additions and 1 deletions

View File

@ -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");