Ignore extras without filename

This commit is contained in:
Sude 2015-01-05 17:02:55 +02:00
parent ae91c28cb0
commit 525985d3fb

View File

@ -2237,6 +2237,15 @@ std::vector<gameFile> Downloader::getExtras(const std::string& gamename, const s
// Get name from path
name.assign(path.begin()+path.find_last_of("/")+1,path.end());
if (name.empty())
{
#ifdef DEBUG
std::cerr << "DEBUG INFO (Downloader::getExtras)" << std::endl;
std::cerr << "Skipped file without a name (game: " << gamename << ", gameid: " << gameid << ", fileid: " << id << ")" << std::endl;
#endif
continue;
}
extras.push_back(
gameFile ( false,
id,