mirror of
https://github.com/Sude-/lgogdownloader.git
synced 2024-11-20 11:49:17 +01:00
Version 2.6
This commit is contained in:
parent
f1a138e6bf
commit
b1db888094
2
main.cpp
2
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
|
||||
|
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user