diff options
author | Charles Pigott <charlespigott@googlemail.com> | 2018-09-12 08:19:06 +0100 |
---|---|---|
committer | Ingo von Borstel <github@planetmaker.de> | 2018-09-12 09:19:06 +0200 |
commit | ca5b68145ad6f9631b72635fdfa0ab3a1937b707 (patch) | |
tree | 2531916d3d9c6e79c3d05a8511c167cf3d31597c | |
parent | 94961732a3667f9b2f38da4be5209b1259db6733 (diff) | |
download | openttd-ca5b68145ad6f9631b72635fdfa0ab3a1937b707.tar.xz |
Fix #6839: OLD_GM_DIR midi search path got lost (#6900)
-rw-r--r-- | src/music/midifile.cpp | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/music/midifile.cpp b/src/music/midifile.cpp index 931be181a..a2455358f 100644 --- a/src/music/midifile.cpp +++ b/src/music/midifile.cpp @@ -1013,6 +1013,8 @@ std::string MidiFile::GetSMFFile(const MusicSongInfo &song) char filename[MAX_PATH]; if (FioFindFullPath(filename, lastof(filename), Subdirectory::BASESET_DIR, song.filename)) { return std::string(filename); + } else if (FioFindFullPath(filename, lastof(filename), Subdirectory::OLD_GM_DIR, song.filename)) { + return std::string(filename); } else { return std::string(); } |