mirror of
https://github.com/libretro/scummvm.git
synced 2024-12-15 22:28:10 +00:00
Close Etude midi driver on exit in the ugghliest way possible
svn-id: r5129
This commit is contained in:
parent
2d22cc4567
commit
8ea56e58a8
@ -36,6 +36,7 @@
|
||||
|
||||
#include "stdafx.h"
|
||||
#include "scumm/scumm.h"
|
||||
#include "sound/mididrv.h"
|
||||
#include "morphos.h"
|
||||
#include "morphos_scaler.h"
|
||||
#include "morphos_sound.h"
|
||||
@ -51,6 +52,7 @@ static RDArgs *ScummArgs = NULL;
|
||||
static char*ScummStory = NULL;
|
||||
static char*ScummPath = NULL;
|
||||
STRPTR ScummMusicDriver = NULL;
|
||||
MidiDriver* EtudeMidiDriver = NULL;
|
||||
LONG ScummMidiUnit = 0;
|
||||
static LONG ScummMidiVolume = 0;
|
||||
static LONG ScummMidiTempo = 0;
|
||||
@ -92,6 +94,9 @@ OSystem *OSystem_MorphOS_create(int game_id, int gfx_mode, bool full_screen)
|
||||
|
||||
void close_resources()
|
||||
{
|
||||
if (EtudeMidiDriver)
|
||||
EtudeMidiDriver->close();
|
||||
|
||||
if (TheSystem)
|
||||
delete TheSystem;
|
||||
|
||||
|
@ -506,9 +506,12 @@ uint32 MidiDriver_ETUDE::property(int prop, uint32 param)
|
||||
return 0;
|
||||
}
|
||||
|
||||
extern MidiDriver* EtudeMidiDriver;
|
||||
|
||||
MidiDriver *MidiDriver_ETUDE_create()
|
||||
{
|
||||
return new MidiDriver_ETUDE();
|
||||
EtudeMidiDriver = new MidiDriver_ETUDE();
|
||||
return EtudeMidiDriver;
|
||||
}
|
||||
|
||||
#endif // __MORPHOS__
|
||||
|
Loading…
Reference in New Issue
Block a user