mirror of
https://github.com/OpenTTD/OpenTTD.git
synced 2025-07-15 08:35:11 +01:00
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
Block a user