mirror of https://github.com/OpenTTD/OpenTTD
parent
94961732a3
commit
ca5b68145a
|
@ -1013,6 +1013,8 @@ std::string MidiFile::GetSMFFile(const MusicSongInfo &song)
|
||||||
char filename[MAX_PATH];
|
char filename[MAX_PATH];
|
||||||
if (FioFindFullPath(filename, lastof(filename), Subdirectory::BASESET_DIR, song.filename)) {
|
if (FioFindFullPath(filename, lastof(filename), Subdirectory::BASESET_DIR, song.filename)) {
|
||||||
return std::string(filename);
|
return std::string(filename);
|
||||||
|
} else if (FioFindFullPath(filename, lastof(filename), Subdirectory::OLD_GM_DIR, song.filename)) {
|
||||||
|
return std::string(filename);
|
||||||
} else {
|
} else {
|
||||||
return std::string();
|
return std::string();
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue