Don't get game list when using cache unless --list was used

This commit is contained in:
Sude 2014-10-16 19:14:22 +03:00
parent eef4712b6e
commit d0986542ef

View File

@ -86,7 +86,9 @@ int Downloader::init()
if (config.bCover && config.bDownload && !config.bUpdateCheck)
coverXML = this->getResponse(config.sCoverList);
if (!config.bUpdateCheck) // updateCheck() calls getGameList() if needed
// updateCheck() calls getGameList() if needed
// getGameList() is not needed when using cache unless we want to list games from account
if ( !config.bUpdateCheck && (!config.bUseCache || (config.bUseCache && config.bList)) )
this->getGameList();
if (config.bReport && (config.bDownload || config.bRepair))