switch to Util::replaceString()

This commit is contained in:
nerdspice 2023-10-12 11:22:40 -04:00 committed by GitHub
parent 724146f69d
commit b559d1ca30
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -312,9 +312,9 @@ gameDetails galaxyAPI::productInfoJsonToGameDetails(const Json::Value& json, con
gamedetails.product_id = json["id"].asString();
gamedetails.title = json["title"].asString();
gamedetails.icon = "https:" + json["images"]["icon"].asString();
std::string logo = "https:" + json["images"]["logo"].asString();
gamedetails.logo = "https:" + json["images"]["logo"].asString();
gamedetails.logo = logo.substr(0, logo.length() - 13) + ".jpg";
Util.replaceString(gamedetails.logo, "_glx_logo.jpg", ".jpg");
if (json.isMember("changelog"))
gamedetails.changelog = json["changelog"].asString();