Changeset - r22997:3b5539e3ea85
[Not reviewed]
master
0 1 0
Niels Martin Hansen - 6 years ago 2018-09-03 16:35:22
nielsm@indvikleren.dk
Fix: Check the search paths for standard MIDI files
1 file changed with 6 insertions and 1 deletions:
0 comments (0 inline, 0 general)
src/music/midifile.cpp
Show inline comments
 
@@ -1010,7 +1010,12 @@ bool MidiFile::WriteSMF(const char *file
 
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();
0 comments (0 inline, 0 general)