mirror of
https://github.com/Sude-/lgogdownloader.git
synced 2024-11-20 11:49:17 +01:00
Fix multiple DLCs when using cache
This commit is contained in:
parent
d97849818e
commit
9727b3f5c3
@ -2989,7 +2989,10 @@ std::vector<gameDetails> Downloader::getGameDetailsFromJsonNode(Json::Value root
|
||||
else if (nodeName == "languagepacks" && config.bLanguagePacks)
|
||||
game.languagepacks.push_back(fileDetails);
|
||||
else if (nodeName == "dlcs" && conf.bDLC)
|
||||
game.dlcs = this->getGameDetailsFromJsonNode(fileDetailsNode, recursion_level + 1);
|
||||
{
|
||||
std::vector<gameDetails> dlcs = this->getGameDetailsFromJsonNode(fileDetailsNode, recursion_level + 1);
|
||||
game.dlcs.insert(game.dlcs.end(), dlcs.begin(), dlcs.end());
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user