Merge pull request #176 from SirMangler/patch-1

Replace geckocodes.org with mirror codes.rc24.xyz
This commit is contained in:
Tinob 2020-10-25 19:10:41 -03:00 committed by GitHub
commit bc61fa90ac
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -30,7 +30,9 @@ std::vector<GeckoCode> DownloadCodes(std::string gameid, bool* succeeded)
break;
}
std::string endpoint{"http://geckocodes.org/txt.php?txt=" + gameid};
// codes.rc24.xyz is a mirror of the now defunct geckocodes.org.
std::string endpoint{"https://codes.rc24.xyz/txt.php?txt=" + gametdb_id};
Common::HttpRequest http;
const Common::HttpRequest::Response response = http.Get(endpoint);
*succeeded = response.has_value();