From b1db888094c963ad5885a527a16b9194a5b87460 Mon Sep 17 00:00:00 2001 From: Sude Date: Sat, 8 Jun 2013 00:51:30 +0300 Subject: [PATCH] Version 2.6 --- main.cpp | 2 +- src/downloader.cpp | 20 ++------------------ 2 files changed, 3 insertions(+), 19 deletions(-) diff --git a/main.cpp b/main.cpp index ef9accf..d434499 100644 --- a/main.cpp +++ b/main.cpp @@ -21,7 +21,7 @@ # endif #endif -#define VERSION_NUMBER "2.5" +#define VERSION_NUMBER "2.6" #ifndef VERSION_STRING # define VERSION_STRING "LGOGDownloader " VERSION_NUMBER diff --git a/src/downloader.cpp b/src/downloader.cpp index 55afd21..069f3e5 100644 --- a/src/downloader.cpp +++ b/src/downloader.cpp @@ -139,29 +139,19 @@ int Downloader::login() void Downloader::updateCheck() { if (gogAPI->user.notifications_forum) - { std::cout << gogAPI->user.notifications_forum << " new forum replies" << std::endl; - } else - { std::cout << "No new forum replies" << std::endl; - } + if (gogAPI->user.notifications_messages) - { std::cout << gogAPI->user.notifications_messages << " new private message(s)" << std::endl; - } else - { std::cout << "No new private messages" << std::endl; - } + if (gogAPI->user.notifications_games) - { std::cout << gogAPI->user.notifications_games << " updated game(s)" << std::endl; - } else - { std::cout << "No updated games" << std::endl; - } if (gogAPI->user.notifications_games) { @@ -188,9 +178,7 @@ void Downloader::getGameList() { // GameRegex filter aliases if (config.sGameRegex == "all") - { config.sGameRegex = ".*"; - } if (config.sGameRegex == "free") { @@ -204,18 +192,14 @@ void Downloader::getGameList() for (unsigned int i = 0; i < gameNames.size(); ++i) { if (boost::regex_search(gameNames[i], what, expression)) - { gameNamesFiltered.push_back(gameNames[i]); - } } gameNames = gameNamesFiltered; } } if (config.bListDetails || config.bDownload || config.bRepair) - { this->getGameDetails(); - } } /* Get detailed info about the games