Skip to content

Commit

Permalink
temp: Commit working tree
Browse files Browse the repository at this point in the history
  • Loading branch information
GeckoEidechse committed Jan 19, 2024
1 parent f2dd158 commit 124ebee
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion primedev/mods/autodownload/moddownloader.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -88,7 +88,14 @@ void ModDownloader::FetchModsListFromAPI()
// Load mods list into local state
spdlog::info("Loading mods configuration...");
verifiedModsJson.Parse(readBuffer);
for (auto i = verifiedModsJson.MemberBegin(); i != verifiedModsJson.MemberEnd(); ++i)
assert(verifiedModsJson.HasMember("thunderstore"));

// Check if the "thunderstore" key exists
auto verifiedModsJsonThunderstore = verifiedModsJson["thunderstore"];

assert(verifiedModsJsonThunderstore->value.IsObject());

for (auto i : verifiedModsJsonThunderstore->value.GetObject())
{
std::string name = i->name.GetString();
std::string dependency = i->value["DependencyPrefix"].GetString();
Expand Down

0 comments on commit 124ebee

Please sign in to comment.