Skip to content

Commit 144f46c

Browse files
committed
Fix platform detection causing products to be missing
Some products have all platforms set to false Treat these products as every platform set to true https://github.com/Sude-/lgogdownloader/issues/313
1 parent 185da40 commit 144f46c

1 file changed

Lines changed: 4 additions & 0 deletions

File tree

src/website.cpp

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -213,6 +213,10 @@ std::vector<gameItem> Website::getGames()
213213
if (product["worksOn"]["Linux"].asBool())
214214
platform |= GlobalConstants::PLATFORM_LINUX;
215215

216+
// No platform is set, assume all platforms
217+
if (platform == 0)
218+
platform |= Util::getOptionValue("all", GlobalConstants::PLATFORMS);
219+
216220
// Skip if not new and flag is set
217221
if (Globals::globalConfig.bNew && !game.isnew)
218222
continue;

0 commit comments

Comments
 (0)