foxygit / doom Log in
commit 31bb2c78accf62f89aad09d3be1680bb0ff09012
Author:     Michael Day <mikeguy42@gmail.com>
AuthorDate: Sun Aug 15 08:40:22 2021 -0400
Commit:     Michael Day <mikeguy42@gmail.com>
CommitDate: Sun Aug 15 08:40:22 2021 -0400

    Add .sf3 extension to file dialog
---
 src/setup/sound.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/src/setup/sound.c b/src/setup/sound.c
index c1cfe25d..b1bde41d 100644
--- a/src/setup/sound.c
+++ b/src/setup/sound.c
@@ -42,7 +42,7 @@ static const char *opltype_strings[] =
 };

 static const char *cfg_extension[] = { "cfg", NULL };
-static const char *sf2_extension[] = { "sf2", NULL };
+static const char *sf_extension[] = { "sf2", "sf3", NULL };

 // Config file variables:

@@ -202,7 +202,7 @@ void ConfigSound(TXT_UNCAST_ARG(widget), void *user_data)
                 TXT_NewStrut(4, 0),
                 TXT_NewFileSelector(&fluidsynth_sf_path, 34,
                                     "Select FluidSynth soundfont file",
-                                    sf2_extension),
+                                    sf_extension),
                 NULL)),
         NULL);
 }