Added QuitCD()
This commit is contained in:
parent
885c2b0c40
commit
cfe335c63a
2 changed files with 7 additions and 2 deletions
src
|
@ -274,6 +274,9 @@ extern void WriteSound(void);
|
|||
/// Cleanup sound.
|
||||
extern void QuitSound(void);
|
||||
|
||||
/// Close CD
|
||||
extern void QuitCD(void);
|
||||
|
||||
#else // }{ WITH_SOUND
|
||||
|
||||
/*----------------------------------------------------------------------------
|
||||
|
|
|
@ -1222,9 +1222,12 @@ global void QuitSound(void)
|
|||
close(SoundFildes);
|
||||
SoundFildes=-1;
|
||||
}
|
||||
|
||||
#endif
|
||||
QuitCD();
|
||||
}
|
||||
|
||||
global void QuitCD(void)
|
||||
{
|
||||
#ifdef USE_SDLCD
|
||||
if (strcmp(CDMode,":off")) {
|
||||
SDL_CDStop(CDRom);
|
||||
|
@ -1239,7 +1242,6 @@ global void QuitSound(void)
|
|||
cd_exit();
|
||||
}
|
||||
#endif
|
||||
|
||||
}
|
||||
|
||||
#endif // } WITH_SOUND
|
||||
|
|
Loading…
Add table
Reference in a new issue