Skip to content

Commit

Permalink
Settings: Support ".soundfont"
Browse files Browse the repository at this point in the history
WiiU: Disable Pause when focus lost
  • Loading branch information
Ghabry committed Mar 11, 2024
1 parent 76d1f8c commit 0672ab9
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 1 deletion.
1 change: 1 addition & 0 deletions src/platform/sdl/sdl2_ui.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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
}

Expand Down
1 change: 1 addition & 0 deletions src/scene_settings.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down
2 changes: 1 addition & 1 deletion src/window_settings.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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();
Expand Down

0 comments on commit 0672ab9

Please sign in to comment.