aboutsummaryrefslogtreecommitdiff
path: root/engines
diff options
context:
space:
mode:
authorAdrian Frühwirth2018-04-21 15:49:36 +0200
committerAdrian Frühwirth2018-04-21 16:02:51 +0200
commit08bbef8f7d62c485105908a024acdd836329ca18 (patch)
tree0b54060089d0bd2304a0884ddd01cae901b63c1c /engines
parent2bbed8146fec101db4e5f39ba35b2bb2536389c5 (diff)
downloadscummvm-rg350-08bbef8f7d62c485105908a024acdd836329ca18.tar.gz
scummvm-rg350-08bbef8f7d62c485105908a024acdd836329ca18.tar.bz2
scummvm-rg350-08bbef8f7d62c485105908a024acdd836329ca18.zip
TUCKER: Improve autosave error handling
Diffstat (limited to 'engines')
-rw-r--r--engines/tucker/saveload.cpp5
1 files changed, 4 insertions, 1 deletions
diff --git a/engines/tucker/saveload.cpp b/engines/tucker/saveload.cpp
index 1720e10a2b..00911b9c44 100644
--- a/engines/tucker/saveload.cpp
+++ b/engines/tucker/saveload.cpp
@@ -295,7 +295,10 @@ void TuckerEngine::writeAutosave() {
return;
}
- writeSavegame(kAutoSaveSlot, "Autosave", true);
+ if (writeSavegame(kAutoSaveSlot, "Autosave", true).getCode() != Common::kNoError) {
+ warning("Can't create autosave in slot %i, game not saved", kAutoSaveSlot);
+ return;
+ }
}
}