Skip to content

Commit bc0a075

Browse files
committed
Fix listing game details when using game specific config file
Downloader::printGameDetailsAsText was filtering already filtered details And it was using the global config for that filtering instead of game specific This caused some files not being listed when "include" options were different
1 parent cc2c453 commit bc0a075

1 file changed

Lines changed: 9 additions & 9 deletions

File tree

src/downloader.cpp

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -6717,7 +6717,7 @@ void Downloader::printGameDetailsAsText(gameDetails& game)
67176717
std::cout << "serials:" << std::endl << game.serials << std::endl;
67186718

67196719
// List installers
6720-
if ((Globals::globalConfig.dlConf.iInclude & GlobalConstants::GFTYPE_BASE_INSTALLER) && !game.installers.empty())
6720+
if (!game.installers.empty())
67216721
{
67226722
std::cout << "installers: " << std::endl;
67236723
for (auto gf : game.installers)
@@ -6726,7 +6726,7 @@ void Downloader::printGameDetailsAsText(gameDetails& game)
67266726
}
67276727
}
67286728
// List extras
6729-
if ((Globals::globalConfig.dlConf.iInclude & GlobalConstants::GFTYPE_BASE_EXTRA) && !game.extras.empty())
6729+
if (!game.extras.empty())
67306730
{
67316731
std::cout << "extras: " << std::endl;
67326732
for (auto gf : game.extras)
@@ -6735,7 +6735,7 @@ void Downloader::printGameDetailsAsText(gameDetails& game)
67356735
}
67366736
}
67376737
// List patches
6738-
if ((Globals::globalConfig.dlConf.iInclude & GlobalConstants::GFTYPE_BASE_PATCH) && !game.patches.empty())
6738+
if (!game.patches.empty())
67396739
{
67406740
std::cout << "patches: " << std::endl;
67416741
for (auto gf : game.patches)
@@ -6744,15 +6744,15 @@ void Downloader::printGameDetailsAsText(gameDetails& game)
67446744
}
67456745
}
67466746
// List language packs
6747-
if ((Globals::globalConfig.dlConf.iInclude & GlobalConstants::GFTYPE_BASE_LANGPACK) && !game.languagepacks.empty())
6747+
if (!game.languagepacks.empty())
67486748
{
67496749
std::cout << "language packs: " << std::endl;
67506750
for (auto gf : game.languagepacks)
67516751
{
67526752
this->printGameFileDetailsAsText(gf);
67536753
}
67546754
}
6755-
if ((Globals::globalConfig.dlConf.iInclude & GlobalConstants::GFTYPE_DLC) && !game.dlcs.empty())
6755+
if (!game.dlcs.empty())
67566756
{
67576757
std::cout << "DLCs: " << std::endl;
67586758
for (auto dlc : game.dlcs)
@@ -6763,28 +6763,28 @@ void Downloader::printGameDetailsAsText(gameDetails& game)
67636763
if (!dlc.serials.empty())
67646764
std::cout << "serials:" << dlc.serials << std::endl;
67656765

6766-
if ((Globals::globalConfig.dlConf.iInclude & GlobalConstants::GFTYPE_DLC_INSTALLER) && !dlc.installers.empty())
6766+
if (!dlc.installers.empty())
67676767
{
67686768
for (auto gf : dlc.installers)
67696769
{
67706770
this->printGameFileDetailsAsText(gf);
67716771
}
67726772
}
6773-
if ((Globals::globalConfig.dlConf.iInclude & GlobalConstants::GFTYPE_DLC_PATCH) && !dlc.patches.empty())
6773+
if (!dlc.patches.empty())
67746774
{
67756775
for (auto gf : dlc.patches)
67766776
{
67776777
this->printGameFileDetailsAsText(gf);
67786778
}
67796779
}
6780-
if ((Globals::globalConfig.dlConf.iInclude & GlobalConstants::GFTYPE_DLC_EXTRA) && !dlc.extras.empty())
6780+
if (!dlc.extras.empty())
67816781
{
67826782
for (auto gf : dlc.extras)
67836783
{
67846784
this->printGameFileDetailsAsText(gf);
67856785
}
67866786
}
6787-
if ((Globals::globalConfig.dlConf.iInclude & GlobalConstants::GFTYPE_DLC_LANGPACK) && !dlc.languagepacks.empty())
6787+
if (!dlc.languagepacks.empty())
67886788
{
67896789
for (auto gf : dlc.languagepacks)
67906790
{

0 commit comments

Comments
 (0)