mirror of
https://github.com/izzy2lost/Diddy-Kong-Racing.git
synced 2026-06-19 01:16:26 -07:00
Added error messages for tools to make sure the user has properly run setup before make.
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user