mirror of
https://github.com/TwilitRealm/dusklight
synced 2026-07-03 02:53:08 -04:00
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:
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user