SDL_mixer: fluidsynth: Check for system-installed soundfonts where Fedora keeps them.

From 22d1a9312477b03456c7fa88b271137e4a97b3a8 Mon Sep 17 00:00:00 2001
From: "Ryan C. Gordon" <[EMAIL REDACTED]>
Date: Mon, 1 Jun 2026 11:39:47 -0400
Subject: [PATCH] fluidsynth: Check for system-installed soundfonts where
 Fedora keeps them.

---
 src/decoder_fluidsynth.c | 10 ++++++++--
 1 file changed, 8 insertions(+), 2 deletions(-)

diff --git a/src/decoder_fluidsynth.c b/src/decoder_fluidsynth.c
index bd385f2b..b5efc733 100644
--- a/src/decoder_fluidsynth.c
+++ b/src/decoder_fluidsynth.c
@@ -129,10 +129,16 @@ static bool SDLCALL FLUIDSYNTH_init_audio(SDL_IOStream *io, SDL_AudioSpec *spec,
         }
     }
 
-    #ifdef SDL_PLATFORM_UNIX  // this happens to be where Ubuntu stores a usable soundfont, at least on my laptop. Try it if nothing else worked out.
-    if (!sfio) {
+    #ifdef SDL_PLATFORM_UNIX
+    if (!sfio) {  // this happens to be where Ubuntu stores a usable soundfont, at least on my laptop. Try it if nothing else worked out.
         sfio = SDL_IOFromFile("/usr/share/sounds/sf2/default-GM.sf2", "rb");
     }
+    if (!sfio) { // Fedora is storing it here.
+        sfio = SDL_IOFromFile("/usr/share/soundfonts/default.sf2", "rb");
+    }
+    if (!sfio) { // Fedora is _also_ storing it here. Both are symlinks to the same thing elsewhere, but try both in case one was an older path.
+        sfio = SDL_IOFromFile("/usr/share/sounds/sf2/default.sf2", "rb");
+    }
     #endif
 
     // !!! FIXME: should we fail if there's no soundfont? It's not going to generate sound without one, unless there's a system-provided one in some cases...?