Add a nice message, when none of the input files is used for processing.

svn-id: r46017
This commit is contained in:
Johannes Schickel 2009-11-20 19:40:40 +00:00
parent cf28e38ae1
commit 685ca0a58d

View File

@ -565,6 +565,12 @@ int main(int argc, char *argv[]) {
unusedFiles.clear();
// Short circuit, in case no games are found.
if (games.empty()) {
printf("No games found. Exiting prematurely\n");
return -1;
}
// Process all games found
for (GameMap::const_iterator i = games.begin(); i != games.end(); ++i) {
MD5Map::const_iterator f1 = inputFiles.find(i->first->md5[0]);