diff options
author | Ruediger Hanke | 2002-11-02 10:19:27 +0000 |
---|---|---|
committer | Ruediger Hanke | 2002-11-02 10:19:27 +0000 |
commit | 099bf6cabaa0b99e51057d2e3b561b2b7106831c (patch) | |
tree | ca687f07a302636ccb287105800755fbf8bec206 /backends | |
parent | 8132e3e32f8776461d1720f05d2a23597896d30c (diff) | |
download | scummvm-rg350-099bf6cabaa0b99e51057d2e3b561b2b7106831c.tar.gz scummvm-rg350-099bf6cabaa0b99e51057d2e3b561b2b7106831c.tar.bz2 scummvm-rg350-099bf6cabaa0b99e51057d2e3b561b2b7106831c.zip |
Cleaner CGX open/close
svn-id: r5376
Diffstat (limited to 'backends')
-rw-r--r-- | backends/morphos/morphos_start.cpp | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/backends/morphos/morphos_start.cpp b/backends/morphos/morphos_start.cpp index e94bd71e04..b5363f960c 100644 --- a/backends/morphos/morphos_start.cpp +++ b/backends/morphos/morphos_start.cpp @@ -42,7 +42,6 @@ #include "morphos_sound.h" extern "C" WBStartup *_WBenchMsg; -struct Library* CyberGfxBase; // For command line parsing static STRPTR usageTemplate = "STORY/A,DATAPATH/K,WINDOW/S,SCALER/K,AMIGA/S,MIDIUNIT/K/N,MUSIC/K,MUSICVOL/K/N,SFXVOL/K/N,TEMPO/K/N,TALKSPEED/K/N,NOSUBTITLES=NST/S"; @@ -65,6 +64,7 @@ static BPTR OrigDirLock = 0; Library *CDDABase = NULL; Library *TimerBase = NULL; +struct Library* CyberGfxBase = NULL; OSystem_MorphOS *TheSystem = NULL; @@ -118,6 +118,9 @@ void close_resources() if (CDDABase) CloseLibrary(CDDABase); + + if (CyberGfxBase) + CloseLibrary(CyberGfxBase); } static STRPTR FindMusicDriver(STRPTR argval) @@ -251,7 +254,10 @@ int main() char *argv[20]; char musicvol[6], sfxvol[6], talkspeed[12], tempo[12], scaler[14]; int argc = 0; + CyberGfxBase = OpenLibrary("cybergraphics.library",50); + if (CyberGfxBase == NULL) + exit(1); InitSemaphore(&ScummSoundThreadRunning); InitSemaphore(&ScummMusicThreadRunning); |