mirror of
https://github.com/libretro/scummvm.git
synced 2025-01-18 16:03:05 +00:00
Use shutdown function before quiting
svn-id: r8079
This commit is contained in:
parent
46321eaf62
commit
6416c7d25d
@ -1307,17 +1307,17 @@ void SimonState::o_quit_if_user_presses_y() {
|
||||
for (;;) {
|
||||
delay(1);
|
||||
if (_key_pressed == 'f' && _language == 20) // Hebrew
|
||||
_system->quit();
|
||||
shutdown();
|
||||
if (_key_pressed == 's' && _language == 5) // Spanish
|
||||
_system->quit();
|
||||
shutdown();
|
||||
if (_key_pressed == 's' && _language == 3) // Italian
|
||||
_system->quit();
|
||||
shutdown();
|
||||
if (_key_pressed == 'o' && _language == 2) // French
|
||||
_system->quit();
|
||||
shutdown();
|
||||
if (_key_pressed == 'j' && _language == 1) // German
|
||||
_system->quit();
|
||||
shutdown();
|
||||
if (_key_pressed == 'y' && _language == 0) // English
|
||||
_system->quit();
|
||||
shutdown();
|
||||
if (_key_pressed == 'n')
|
||||
goto get_out;
|
||||
}
|
||||
|
@ -1088,7 +1088,6 @@ void SimonState::playSting(uint a) {
|
||||
if (_mus_file->read(_mus_offsets, size) != size)
|
||||
error("Can't read offsets");
|
||||
|
||||
// midi.shutdown();
|
||||
_mus_file->seek(_mus_offsets[a], SEEK_SET);
|
||||
midi.loadSMF (_mus_file, a, true);
|
||||
midi.startTrack (0);
|
||||
@ -4440,6 +4439,7 @@ void SimonState::shutdown() {
|
||||
delete _game_file;
|
||||
_game_file = NULL;
|
||||
}
|
||||
_system->quit();
|
||||
}
|
||||
|
||||
void SimonState::delay(uint amount) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user