Fix blacklisted file causing downloader to skip a game

Incorrect check for blacklisted file caused the downloader to skip a game instead of skipping just one file
This commit is contained in:
Sude 2014-07-24 18:07:14 +03:00
parent 027b25a5e8
commit 4582884a0d

View File

@ -637,12 +637,6 @@ void Downloader::download()
{
// Take path from installer path because for some games the base directory for installer/extra path is not "gamename"
std::string filepath = Util::makeFilepath(config.sDirectory, games[i].installers[0].path, games[i].gamename);
if (config.blacklist.isBlacklisted(games[i].installers[0].path, games[i].gamename))
{
if (config.bVerbose)
std::cout << "skipped blacklisted file " << filepath << std::endl;
continue;
}
// Get base directory from filepath
boost::match_results<std::string::const_iterator> what;