mirror of
https://gitlab.com/Mr_Goldberg/goldberg_emulator.git
synced 2024-11-17 03:25:47 +00:00
Added missing path
This commit is contained in:
parent
325a19f204
commit
c0fd74088d
@ -310,6 +310,9 @@ static void generate_achievements(CurlEasy &easy)
|
|||||||
|
|
||||||
std::string picture = easy.get_answer();
|
std::string picture = easy.get_answer();
|
||||||
achievement_icon.write(picture.c_str(), picture.length());
|
achievement_icon.write(picture.c_str(), picture.length());
|
||||||
|
|
||||||
|
output_json[i]["icon"] = icon_path;
|
||||||
|
|
||||||
}
|
}
|
||||||
{
|
{
|
||||||
std::string icon_path = "images/" + item.value()["name"].get<std::string>() + "_gray.jpg";
|
std::string icon_path = "images/" + item.value()["name"].get<std::string>() + "_gray.jpg";
|
||||||
@ -324,6 +327,8 @@ static void generate_achievements(CurlEasy &easy)
|
|||||||
|
|
||||||
std::string picture = easy.get_answer();
|
std::string picture = easy.get_answer();
|
||||||
achievement_icon.write(picture.c_str(), picture.length());
|
achievement_icon.write(picture.c_str(), picture.length());
|
||||||
|
|
||||||
|
output_json[i]["icongray"] = icon_path;
|
||||||
}
|
}
|
||||||
++i;
|
++i;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user