diff options
author | Johannes Schickel | 2009-11-20 19:40:40 +0000 |
---|---|---|
committer | Johannes Schickel | 2009-11-20 19:40:40 +0000 |
commit | 685ca0a58d0ef2d0492bfff8de65b81ca4e68a39 (patch) | |
tree | a920bb07f9d12942e56532c6d994a3823f8283f9 | |
parent | cf28e38ae114554f4443b890dc4ec820d1992e89 (diff) | |
download | scummvm-rg350-685ca0a58d0ef2d0492bfff8de65b81ca4e68a39.tar.gz scummvm-rg350-685ca0a58d0ef2d0492bfff8de65b81ca4e68a39.tar.bz2 scummvm-rg350-685ca0a58d0ef2d0492bfff8de65b81ca4e68a39.zip |
Add a nice message, when none of the input files is used for processing.
svn-id: r46017
-rw-r--r-- | tools/create_kyradat/create_kyradat.cpp | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/tools/create_kyradat/create_kyradat.cpp b/tools/create_kyradat/create_kyradat.cpp index f97d0adf62..7356988048 100644 --- a/tools/create_kyradat/create_kyradat.cpp +++ b/tools/create_kyradat/create_kyradat.cpp @@ -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]); |