MelonSpeedruns' squashed commits

* Fix RB channels + Remove mipmaps for now

* Remove loading most Layout files from a TPHD dump

* Fixes the main map crashing

* added folder picker to pre-launch options

* reduced tears of light needed count to 12 instead of 16
This commit is contained in:
MelonSpeedruns
2026-05-04 15:28:34 -04:00
committed by Irastris
parent aa23ae244f
commit 41e128c582
6 changed files with 52 additions and 4 deletions
+20
View File
@@ -495,6 +495,21 @@ void file_dialog_callback(void*, const char* path, const char* error) {
begin_disc_verification(path);
}
void folder_dialog_callback(void*, const char* path, const char* error) {
auto& state = prelaunch_state();
if (error != nullptr) {
return;
}
if (path == nullptr) {
return;
}
state.selectedHdContentPath = path;
state.errorString.clear();
getSettings().backend.hdContentPath.setValue(state.selectedHdContentPath);
config::Save();
}
PrelaunchState sPrelaunchState;
} // namespace
@@ -644,6 +659,11 @@ void open_iso_picker() noexcept {
kDiscFileFilters.data(), kDiscFileFilters.size(), nullptr, false);
}
void open_folder_picker() noexcept {
ensure_initialized();
ShowFolderSelect(&folder_dialog_callback, nullptr, aurora::window::get_sdl_window(), nullptr);
}
bool is_restart_pending() noexcept {
const auto& state = prelaunch_state();
if (!state.activeDiscPath.empty() && state.configuredDiscPath != state.activeDiscPath) {