diff options
author | Ori Avtalion | 2010-04-11 21:30:57 +0000 |
---|---|---|
committer | Ori Avtalion | 2010-04-11 21:30:57 +0000 |
commit | fd3970aa52a0c7f411afdddfebad208f783281c8 (patch) | |
tree | a2950f8f548e47fa4a8a82f2217594e2f78ca23b /engines/scumm | |
parent | 3745c737887b9191a3785110a14cf4d3921b9a4b (diff) | |
download | scummvm-rg350-fd3970aa52a0c7f411afdddfebad208f783281c8.tar.gz scummvm-rg350-fd3970aa52a0c7f411afdddfebad208f783281c8.tar.bz2 scummvm-rg350-fd3970aa52a0c7f411afdddfebad208f783281c8.zip |
Apply patch #2984508 - "GSoC: SCUMM stopped audio from playing while saving"
This is a fix for bug #2090846 - "SCUMM: saving a game will play music before
finishing"
svn-id: r48630
Diffstat (limited to 'engines/scumm')
-rw-r--r-- | engines/scumm/saveload.cpp | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/engines/scumm/saveload.cpp b/engines/scumm/saveload.cpp index 8d5a021461..7362dcd8cf 100644 --- a/engines/scumm/saveload.cpp +++ b/engines/scumm/saveload.cpp @@ -184,6 +184,8 @@ bool ScummEngine::saveState(int slot, bool compat) { Common::String filename; Common::OutSaveFile *out; + pauseEngine(true); + if (_saveLoadSlot == 255) { // Allow custom filenames for save game system in HE Games filename = _saveLoadFileName; @@ -207,6 +209,9 @@ bool ScummEngine::saveState(int slot, bool compat) { return false; } debug(1, "State saved as '%s'", filename.c_str()); + + pauseEngine(false); + return true; } |