mirror of
https://github.com/OpenTTD/OpenTTD.git
synced 2025-08-30 18:09:09 +00:00
committed by
Ingo von Borstel
parent
94961732a3
commit
ca5b68145a
@@ -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();
|
||||
}
|
||||
|
Reference in New Issue
Block a user