diff options
| author | KiritoDv <kiritodev01@gmail.com> | 2025-01-16 01:31:33 -0600 |
|---|---|---|
| committer | KiritoDv <kiritodev01@gmail.com> | 2025-01-16 01:31:33 -0600 |
| commit | 6eae88de7760e97fd202de7152cc515e00089ad9 (patch) | |
| tree | 48dc318bde7d50fad8feb6b6e92a45889691c0bf /src/port/Engine.cpp | |
| parent | 62a88a558af69a4e13ee4064e5f76a35a5aaa21c (diff) | |
Fixed O2R Extraction
Diffstat (limited to 'src/port/Engine.cpp')
| -rw-r--r-- | src/port/Engine.cpp | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/src/port/Engine.cpp b/src/port/Engine.cpp index 3cfa5086..27cb469e 100644 --- a/src/port/Engine.cpp +++ b/src/port/Engine.cpp @@ -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); } |
