Skip to content

Commit

Permalink
Icon file.
Browse files Browse the repository at this point in the history
  • Loading branch information
Nathaniel Moschkin committed Jan 26, 2024
1 parent 3aa23fc commit 45613a5
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/beholdhelper.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -310,8 +310,9 @@ bool BeholdHelper::ReInitialize(bool forceReTraining, const std::string &jsonpat

for (auto &element : j2) {
std::string symbol = element.at("ship")["model"].get<std::string>();
std::string image = symbol;
image = "schematics_" + image.substr(6);
std::string image = element.at("icon")["file"].get<std::string>();
int x = ((std::string)"/schematics/").length;
image = "schematics_" + image.substr(x);

std::string url = asseturl + image + ".png";
std::cout << "Reading " << symbol << "..." << std::endl;
Expand Down

0 comments on commit 45613a5

Please sign in to comment.