diff --git a/include/website.h b/include/website.h index 6151005..0664784 100644 --- a/include/website.h +++ b/include/website.h @@ -24,6 +24,7 @@ class Website std::vector getFreeGames(); std::vector getWishlistItems(); bool IsLoggedIn(); + void setConfig(Config &conf); virtual ~Website(); protected: private: diff --git a/src/downloader.cpp b/src/downloader.cpp index 630fc40..b80afe3 100644 --- a/src/downloader.cpp +++ b/src/downloader.cpp @@ -2831,6 +2831,7 @@ void Downloader::updateCache() config.vLanguagePriority.clear(); config.vPlatformPriority.clear(); config.sIgnoreDLCCountRegex = ".*"; // Ignore DLC count for all games because GOG doesn't report DLC count correctly + gogWebsite->setConfig(config); // Make sure that website handle has updated config this->getGameList(); this->getGameDetails(); diff --git a/src/website.cpp b/src/website.cpp index afb0d45..2e68bed 100644 --- a/src/website.cpp +++ b/src/website.cpp @@ -701,3 +701,8 @@ std::vector Website::getWishlistItems() return wishlistItems; } + +void Website::setConfig(Config &conf) +{ + this->config = conf; +}