mirror of
https://github.com/HarbourMasters/Starship
synced 2026-06-29 11:51:10 -04:00
Fixed O2R Extraction
This commit is contained in:
@@ -60,6 +60,7 @@ GameEngine::GameEngine() {
|
||||
std::vector<std::string> archiveFiles;
|
||||
const std::string main_path = Ship::Context::GetPathRelativeToAppDirectory("sf64.o2r");
|
||||
const std::string assets_path = Ship::Context::GetPathRelativeToAppDirectory("starship.o2r");
|
||||
const std::string mod_path = Ship::Context::GetPathRelativeToAppDirectory("mods/sf64jp.o2r");
|
||||
|
||||
#ifdef _WIN32
|
||||
AllocConsole();
|
||||
@@ -75,6 +76,14 @@ GameEngine::GameEngine() {
|
||||
} else {
|
||||
archiveFiles.push_back(main_path);
|
||||
}
|
||||
|
||||
if (ShowYesNoBox("Extraction Complete", "ROM Extracted. Extract another?") == IDYES) {
|
||||
if(!GenAssetFile()){
|
||||
ShowMessage("Error", "An error occured, no O2R file was generated.");
|
||||
} else {
|
||||
archiveFiles.push_back(mod_path);
|
||||
}
|
||||
}
|
||||
} else {
|
||||
exit(1);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user