mirror of
https://github.com/OpenTTD/OpenTTD.git
synced 2025-08-19 04:29:09 +00:00
(svn r2563) -Fix: [1209084] Spaces in the path to the MIDI files caused the win32 MIDI player to fail
This commit is contained in:
2
win32.c
2
win32.c
@@ -846,7 +846,7 @@ static long CDECL MidiSendCommand(const char *cmd, ...) {
|
|||||||
static bool MidiIntPlaySong(const char *filename)
|
static bool MidiIntPlaySong(const char *filename)
|
||||||
{
|
{
|
||||||
MidiSendCommand("close all");
|
MidiSendCommand("close all");
|
||||||
if (MidiSendCommand("open %s type sequencer alias song", filename) != 0)
|
if (MidiSendCommand("open \"%s\" type sequencer alias song", filename) != 0)
|
||||||
return false;
|
return false;
|
||||||
|
|
||||||
if (MidiSendCommand("play song from 0") != 0)
|
if (MidiSendCommand("play song from 0") != 0)
|
||||||
|
Reference in New Issue
Block a user