scummvm/audio/softsynth
Lars Sundström f921c6acd9 AUDIO: Fix problem where fluidsynth soundfont could not be loaded
The user can specify a custom soundfont to be used with fluidsynth.
There was previously a hack for the iOS7 backend to get the path to
the document folder where the user can put files in a sandboxed
environment. This hack was removed in commit:
cac0664757

The problem however occurred when creating a FSNode from the full
system path because FSNode uses makeFileNodePath, which already
prepends the root. So the full path is added twice which causes the
fileNode.exists() to fail.

Create the FSNode from the path to the soundfont and check if the
file exist. If so then return the full path.

Cherry-pick of: addbdc13c5
Git conflict manually fixed
2024-03-02 12:06:27 +01:00
..
fmtowns_pc98 AUDIO: FM-TOWNS/PC-98: Fix array init. PVS-Studio V512 2023-11-19 20:29:44 -08:00
mt32 AUDIO: MT32: sprintf -> snprintf 2023-03-17 16:58:44 +01:00
opl AUDIO: remove unused variable assignment in dbopl 2023-06-17 10:12:30 -07:00
appleiigs.cpp AUDIO: Avoid including translations.h in header file 2023-03-17 14:37:50 +01:00
cms.cpp AUDIO: Merge the DOSBoxCMS and CMSEmulator classes 2022-12-01 00:28:56 +02:00
cms.h AUDIO: Merge the DOSBoxCMS and CMSEmulator classes 2022-12-01 00:28:56 +02:00
eas.cpp AUDIO: Remove dynamic load of EAS for Android and fix DLS loading 2023-08-06 14:10:50 +02:00
emumidi.h
fluidsynth.cpp AUDIO: Fix problem where fluidsynth soundfont could not be loaded 2024-03-02 12:06:27 +01:00
mt32.cpp
pcspk.cpp AUDIO: Avoid including translations.h in header file 2023-03-17 14:37:50 +01:00
pcspk.h
sid.cpp AUDIO: Avoid including translations.h in header file 2023-03-17 14:37:50 +01:00
sid.h AUDIO: Reduce the static table sizes in the SID emulator 2022-12-22 23:46:52 +01:00
wave6581.cpp AUDIO: Reduce the static table sizes in the SID emulator 2022-12-22 23:46:52 +01:00