From 0672ab96d133e3a351dc23cf1c1dab2aff4c4063 Mon Sep 17 00:00:00 2001 From: Ghabry Date: Mon, 11 Mar 2024 21:42:16 +0100 Subject: [PATCH] Settings: Support ".soundfont" WiiU: Disable Pause when focus lost --- src/platform/sdl/sdl2_ui.cpp | 1 + src/scene_settings.cpp | 1 + src/window_settings.cpp | 2 +- 3 files changed, 3 insertions(+), 1 deletion(-) diff --git a/src/platform/sdl/sdl2_ui.cpp b/src/platform/sdl/sdl2_ui.cpp index 30e45fb9e4..f1eeab6484 100644 --- a/src/platform/sdl/sdl2_ui.cpp +++ b/src/platform/sdl/sdl2_ui.cpp @@ -1240,6 +1240,7 @@ void Sdl2Ui::vGetConfig(Game_ConfigVideo& cfg) const { cfg.fullscreen.SetOptionVisible(false); cfg.window_zoom.SetOptionVisible(false); cfg.vsync.SetOptionVisible(false); + cfg.pause_when_focus_lost.SetOptionVisible(false); #endif } diff --git a/src/scene_settings.cpp b/src/scene_settings.cpp index 4f58dd7af6..8ca612a738 100644 --- a/src/scene_settings.cpp +++ b/src/scene_settings.cpp @@ -468,6 +468,7 @@ void Scene_Settings::UpdateFont(bool mincho) { last_index = index; if (index == 0) { + // Built-In font help_window2->Clear(); help_window2->SetFont(Font::DefaultBitmapFont(mincho)); help_window2->SetVisible(true); diff --git a/src/window_settings.cpp b/src/window_settings.cpp index 23a4a7bb46..4ec87e65fc 100644 --- a/src/window_settings.cpp +++ b/src/window_settings.cpp @@ -367,7 +367,7 @@ void Window_Settings::RefreshAudioSoundfont() { std::string sf_lower = Utils::LowerCase(Audio().GetFluidsynthSoundfont()); for (const auto& item: *list) { - if (item.second.type == DirectoryTree::FileType::Regular && StringView(item.first).ends_with(".sf2")) { + if (item.second.type == DirectoryTree::FileType::Regular && (StringView(item.first).ends_with(".sf2") || StringView(item.first).ends_with(".soundfont"))) { AddOption(MenuItem(item.second.name, "Use this custom soundfont", StringView(sf_lower).ends_with(item.first) ? "[x]" : ""), [this, fs, item]() { Audio().SetFluidsynthSoundfont(FileFinder::MakePath(fs.GetFullPath(), item.second.name)); Pop();