SCUMM: PauseToken for saving
This commit is contained in:
parent
ce4cfdf5d2
commit
802c0ece7f
1 changed files with 1 additions and 3 deletions
|
@ -195,7 +195,7 @@ bool ScummEngine::saveState(Common::WriteStream *out, bool writeHeader) {
|
|||
bool ScummEngine::saveState(int slot, bool compat, Common::String &filename) {
|
||||
bool saveFailed = false;
|
||||
|
||||
pauseEngine(true);
|
||||
PauseToken pt = pauseEngine();
|
||||
|
||||
Common::WriteStream *out = openSaveFileForWriting(slot, compat, filename);
|
||||
if (!out) {
|
||||
|
@ -215,8 +215,6 @@ bool ScummEngine::saveState(int slot, bool compat, Common::String &filename) {
|
|||
else
|
||||
debug(1, "State saved as '%s'", filename.c_str());
|
||||
|
||||
pauseEngine(false);
|
||||
|
||||
return !saveFailed;
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue