mirror of
https://github.com/Sude-/lgogdownloader.git
synced 2024-11-20 03:39:17 +01:00
Galaxy: Add DLC info to game details only if DLC has any files
This commit is contained in:
parent
fd27b93486
commit
2d70bdfacb
@ -327,7 +327,9 @@ gameDetails galaxyAPI::productInfoJsonToGameDetails(const Json::Value& json, con
|
||||
for (unsigned int j = 0; j < dlc_gamedetails.languagepacks.size(); ++j)
|
||||
dlc_gamedetails.languagepacks[j].type |= GFTYPE_DLC;
|
||||
|
||||
gamedetails.dlcs.push_back(dlc_gamedetails);
|
||||
// Add DLC only if it has any files
|
||||
if (!dlc_gamedetails.installers.empty() || !dlc_gamedetails.extras.empty() || !dlc_gamedetails.patches.empty() || !dlc_gamedetails.languagepacks.empty())
|
||||
gamedetails.dlcs.push_back(dlc_gamedetails);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user