aboutsummaryrefslogtreecommitdiff
path: root/engines
diff options
context:
space:
mode:
authorFilippos Karapetis2007-12-08 17:48:51 +0000
committerFilippos Karapetis2007-12-08 17:48:51 +0000
commitc07894bcea475c6bc3d658e65adce41733f8c3c8 (patch)
tree5a25aeed30bec6f539b1a4c6f4efbce52fca95bd /engines
parent6ef7e3748876e799cf37b8af15e95e5d3adce744 (diff)
downloadscummvm-rg350-c07894bcea475c6bc3d658e65adce41733f8c3c8.tar.gz
scummvm-rg350-c07894bcea475c6bc3d658e65adce41733f8c3c8.tar.bz2
scummvm-rg350-c07894bcea475c6bc3d658e65adce41733f8c3c8.zip
ioFailed() is now checked when saving a game
svn-id: r29767
Diffstat (limited to 'engines')
-rw-r--r--engines/saga/saveload.cpp5
1 files changed, 3 insertions, 2 deletions
diff --git a/engines/saga/saveload.cpp b/engines/saga/saveload.cpp
index 96a300b4b9..f721e10dbb 100644
--- a/engines/saga/saveload.cpp
+++ b/engines/saga/saveload.cpp
@@ -217,7 +217,8 @@ void SagaEngine::save(const char *fileName, const char *saveName) {
out->finalize();
- // TODO: Check out->ioFailed()
+ if (out->ioFailed())
+ warning("Can't write file '%s'. (Disk full?)", fileName);
delete out;
}
@@ -252,7 +253,7 @@ void SagaEngine::load(const char *fileName) {
warning("This savegame is not endian-safe. There may be problems");
if (_saveHeader.type != MKID_BE('SAGA')) {
- error("SagaEngine::load wrong format");
+ error("SagaEngine::load wrong save game format");
}
if (_saveHeader.version > 4) {