Update check has priority over downloading or listing files

This commit is contained in:
Sude 2013-03-16 03:22:45 +02:00
parent 14432fb9aa
commit b910d4bcb9

View File

@ -172,14 +172,14 @@ int main(int argc, char *argv[])
if (config.bLogin) if (config.bLogin)
return result; return result;
else if (config.bUpdateCheck) // Update check has priority over download and list
downloader.updateCheck();
else if (config.bDownload) // Download games else if (config.bDownload) // Download games
downloader.download(); downloader.download();
else if (config.bRepair) // Repair file else if (config.bRepair) // Repair file
downloader.repair(); downloader.repair();
else if (config.bListDetails || config.bList) // Detailed list of games/extras else if (config.bListDetails || config.bList) // Detailed list of games/extras
downloader.listGames(); downloader.listGames();
else if (config.bUpdateCheck) // Detailed list of games/extras
downloader.updateCheck();
else else
{ // Show help message { // Show help message
std::cout << config.sVersionString << std::endl std::cout << config.sVersionString << std::endl