summaryrefslogtreecommitdiff
path: root/src/music/midifile.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/music/midifile.cpp')
-rw-r--r--src/music/midifile.cpp7
1 files changed, 6 insertions, 1 deletions
diff --git a/src/music/midifile.cpp b/src/music/midifile.cpp
index 688538db9..9506776ef 100644
--- a/src/music/midifile.cpp
+++ b/src/music/midifile.cpp
@@ -1010,7 +1010,12 @@ bool MidiFile::WriteSMF(const char *filename)
std::string MidiFile::GetSMFFile(const MusicSongInfo &song)
{
if (song.filetype == MTT_STANDARDMIDI) {
- return std::string(song.filename);
+ char filename[MAX_PATH];
+ if (FioFindFullPath(filename, lastof(filename), Subdirectory::BASESET_DIR, song.filename)) {
+ return std::string(filename);
+ } else {
+ return std::string();
+ }
}
if (song.filetype != MTT_MPSMIDI) return std::string();