diff options
author | Vincent Bénony | 2016-01-06 10:20:42 +0100 |
---|---|---|
committer | Vincent Bénony | 2016-01-06 16:20:29 +0100 |
commit | a56c58765191f17180f612d69a4c4bf8d3c13233 (patch) | |
tree | 59796b7dad0e6dcd62d1565a3f8d257610ca1a90 /audio/softsynth | |
parent | 793acc0f2db88078bc4c54c95156c75b3dfbda5e (diff) | |
download | scummvm-rg350-a56c58765191f17180f612d69a4c4bf8d3c13233.tar.gz scummvm-rg350-a56c58765191f17180f612d69a4c4bf8d3c13233.tar.bz2 scummvm-rg350-a56c58765191f17180f612d69a4c4bf8d3c13233.zip |
IOS: Fluidsynth path hack only for iOS 7
Diffstat (limited to 'audio/softsynth')
-rw-r--r-- | audio/softsynth/fluidsynth.cpp | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/audio/softsynth/fluidsynth.cpp b/audio/softsynth/fluidsynth.cpp index b776c04738..4240958616 100644 --- a/audio/softsynth/fluidsynth.cpp +++ b/audio/softsynth/fluidsynth.cpp @@ -31,7 +31,7 @@ #include "audio/musicplugin.h" #include "audio/mpu401.h" #include "audio/softsynth/emumidi.h" -#ifdef IPHONE_OFFICIAL +#ifdef IPHONE_OFFICIAL_IOS7 #include <string.h> #include <sys/syslimits.h> #include "backends/platform/ios7/ios7_common.h" @@ -184,7 +184,10 @@ int MidiDriver_FluidSynth::open() { const char *soundfont = ConfMan.get("soundfont").c_str(); -#ifdef IPHONE_OFFICIAL +#ifdef IPHONE_OFFICIAL_IOS7 + // HACK: Due to the sandbox on non-jailbroken iOS devices, we need to deal with the chroot filesystem. + // All the path selected by the user are relative to the Document directory. So, we need to adjust + // the path to reflect that. Common::String soundfont_fullpath = iOS7_getDocumentsDir(); soundfont_fullpath += soundfont; _soundFont = fluid_synth_sfload(_synth, soundfont_fullpath.c_str(), 1); |