diff options
Diffstat (limited to 'backends/morphos/morphos_sound.cpp')
-rw-r--r-- | backends/morphos/morphos_sound.cpp | 12 |
1 files changed, 8 insertions, 4 deletions
diff --git a/backends/morphos/morphos_sound.cpp b/backends/morphos/morphos_sound.cpp index 8ba967c0c6..0646f2bed8 100644 --- a/backends/morphos/morphos_sound.cpp +++ b/backends/morphos/morphos_sound.cpp @@ -55,9 +55,16 @@ static MsgPort *ScummMidiPort = NULL; Device *EtudeBase = NULL; +bool etude_available() +{ + bool avail = init_morphos_music(ScummMidiUnit, ETUDEF_DIRECT); + if (avail) + exit_morphos_music(); + return avail; +} + bool init_morphos_music(ULONG MidiUnit, ULONG DevFlags) { - MidiUnit = ScummMidiUnit; // Ugly fix, but ... ScummMidiPort = CreateMsgPort(); if (ScummMidiPort) { @@ -83,10 +90,7 @@ bool init_morphos_music(ULONG MidiUnit, ULONG DevFlags) } if (!ScummMidiRequest) - { - warning("Could not open Etude - music will not play"); return false; - } return true; } |