diff --git a/mods/randomizer/src/tools.cpp b/mods/randomizer/src/tools.cpp index 3f8d575673..f710d9e419 100644 --- a/mods/randomizer/src/tools.cpp +++ b/mods/randomizer/src/tools.cpp @@ -788,7 +788,6 @@ u8 getAncientDocumentNum() { void setAncientDocumentNum(u8 num) { g_skyCharacters = num; - saveAncientDocumentNum(); } u8 getAreaKeyNum(int i_stageNo) { diff --git a/mods/randomizer/src/ui/rando_config.cpp b/mods/randomizer/src/ui/rando_config.cpp index 3ac9218e16..994612b5e8 100644 --- a/mods/randomizer/src/ui/rando_config.cpp +++ b/mods/randomizer/src/ui/rando_config.cpp @@ -481,6 +481,8 @@ ModResult buildPlayTab(ModContext* ctx, UiWindowHandle, UiElementHandle leftPane UiElementHandle rightPane, void*, ModError*) { std::filesystem::path seed_dir = paths::GetRandomizerSeedsPath(); + if (!std::filesystem::exists(seed_dir)) + std::filesystem::create_directory(seed_dir); std::string help_rml = ""; if (std::filesystem::is_empty(seed_dir)) { @@ -605,7 +607,7 @@ ModResult buildFileSelectGateMenu(dFile_select_c* fileSelect) { g_dialogSelectModeState = SelectReady; }; - session::svc_mng.ui->window_push(session::svc_mng.mod_ctx, &desc, &g_file_select_window_ctx.window_handle); + return session::svc_mng.ui->window_push(session::svc_mng.mod_ctx, &desc, &g_file_select_window_ctx.window_handle); } } // namespace dusk::ui