1
1
Fork 0
mirror of https://github.com/QB64-Phoenix-Edition/QB64pe.git synced 2024-07-06 01:10:23 +00:00

Fix $MidiSoundFont when compiling from command line

This commit is contained in:
Matthew Kilgore 2023-03-27 00:55:35 -04:00 committed by Matt Kilgore
parent e657412b80
commit 075d5bf157

View file

@ -3500,6 +3500,8 @@ DO
' Just try to concatenate the path with the source or include path and check if we are able to find the file
IF inclevel > 0 AND _FILEEXISTS(getfilepath(incname(inclevel)) + MidiSoundFont$) THEN
MidiSoundFont$ = getfilepath(incname(inclevel)) + MidiSoundFont$
ELSEIF _FILEEXISTS(FixDirectoryName(path.source$) + MidiSoundFont$) Then
MidiSoundFont$ = FixDirectoryName(path.source$) + MidiSoundFont$
ELSEIF _FILEEXISTS(FixDirectoryName(idepath$) + MidiSoundFont$) THEN
MidiSoundFont$ = FixDirectoryName(idepath$) + MidiSoundFont$
END IF