Fixed dumb mistake
Some checks are pending
GenerateBuilds / build-linux (push) Blocked by required conditions
GenerateBuilds / generate-port-o2r (push) Waiting to run
GenerateBuilds / build-windows (push) Blocked by required conditions
GenerateBuilds / build-macos (push) Blocked by required conditions

This commit is contained in:
KiritoDv 2025-01-16 02:17:12 -06:00
parent fe1535494b
commit d2839767da

View File

@ -66,6 +66,10 @@ GameEngine::GameEngine() {
AllocConsole(); AllocConsole();
#endif #endif
if (!fs::exists("mods")) {
fs::create_directories("mods");
}
if (std::filesystem::exists(main_path)) { if (std::filesystem::exists(main_path)) {
archiveFiles.push_back(main_path); archiveFiles.push_back(main_path);
} else { } else {
@ -78,9 +82,6 @@ GameEngine::GameEngine() {
} }
if (ShowYesNoBox("Extraction Complete", "ROM Extracted. Extract another?") == IDYES) { if (ShowYesNoBox("Extraction Complete", "ROM Extracted. Extract another?") == IDYES) {
if (!fs::exists("mods")) {
fs::create_directories("mods");
}
if(!GenAssetFile()){ if(!GenAssetFile()){
ShowMessage("Error", "An error occured, no O2R file was generated."); ShowMessage("Error", "An error occured, no O2R file was generated.");
} else { } else {