Added error messages for tools to make sure the user has properly run setup before make.

This commit is contained in:
David Benepe
2020-06-28 13:52:22 -05:00
parent 8b0d8d457b
commit 65523fcb6e
4 changed files with 38 additions and 13 deletions
+9 -1
View File
@@ -548,6 +548,8 @@ int main(int argc, char* argv[]) {
}
}
bool completedAnExtraction = false;
for(auto& config : configs) {
if(config.is_supported()) {
for(auto& rom : roms) {
@@ -555,13 +557,19 @@ int main(int argc, char* argv[]) {
std::cout << "Found ROM file for config \"" << config.get_name() << "\"" << std::endl;
extract_assets_from_rom(config, rom);
std::cout << "Finished extracting " << numberOfFilesExtracted << " files." << std::endl;
completedAnExtraction = true;
break;
}
}
} else {
std::cout << "This version of the game is currently not supported." << std::endl;
std::cout << "The config for \"" << config.get_name() << "\" is currently not supported." << std::endl;
}
}
if(!completedAnExtraction) {
std::cout << "No compatible ROMs were found within the /baseroms/ directory" << std::endl;
return 1;
}
return 0;
}