From 724146f69d973632f058b6737c80b1249d4dba31 Mon Sep 17 00:00:00 2001 From: nerdspice <49222223+nerdspice@users.noreply.github.com> Date: Thu, 12 Oct 2023 10:47:31 -0400 Subject: [PATCH] switch logo to full-sized version --- src/galaxyapi.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/galaxyapi.cpp b/src/galaxyapi.cpp index 50f9820..12916b3 100644 --- a/src/galaxyapi.cpp +++ b/src/galaxyapi.cpp @@ -312,7 +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(); - gamedetails.logo = "https:" + json["images"]["logo2x"].asString(); + std::string logo = "https:" + json["images"]["logo"].asString(); + + gamedetails.logo = logo.substr(0, logo.length() - 13) + ".jpg"; if (json.isMember("changelog")) gamedetails.changelog = json["changelog"].asString();