From 6416c7d25d5365c8af40854025c7dc7308900c61 Mon Sep 17 00:00:00 2001 From: Travis Howell Date: Thu, 29 May 2003 06:05:34 +0000 Subject: [PATCH] Use shutdown function before quiting svn-id: r8079 --- simon/items.cpp | 12 ++++++------ simon/simon.cpp | 2 +- 2 files changed, 7 insertions(+), 7 deletions(-) diff --git a/simon/items.cpp b/simon/items.cpp index 5a5b745f861..41793157078 100644 --- a/simon/items.cpp +++ b/simon/items.cpp @@ -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; } diff --git a/simon/simon.cpp b/simon/simon.cpp index a3e37070866..6056c643c6c 100644 --- a/simon/simon.cpp +++ b/simon/simon.cpp @@ -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) {