Skip to content

Commit

Permalink
Fixed dumb mistake
Browse files Browse the repository at this point in the history
  • Loading branch information
KiritoDv committed Jan 16, 2025
1 parent fe15354 commit d283976
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions src/port/Engine.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -66,6 +66,10 @@ GameEngine::GameEngine() {
AllocConsole();
#endif

if (!fs::exists("mods")) {
fs::create_directories("mods");
}

if (std::filesystem::exists(main_path)) {
archiveFiles.push_back(main_path);
} else {
Expand All @@ -78,9 +82,6 @@ GameEngine::GameEngine() {
}

if (ShowYesNoBox("Extraction Complete", "ROM Extracted. Extract another?") == IDYES) {
if (!fs::exists("mods")) {
fs::create_directories("mods");
}
if(!GenAssetFile()){
ShowMessage("Error", "An error occured, no O2R file was generated.");
} else {
Expand Down

0 comments on commit d283976

Please sign in to comment.