diff options
author | Filippos Karapetis | 2007-12-08 17:48:51 +0000 |
---|---|---|
committer | Filippos Karapetis | 2007-12-08 17:48:51 +0000 |
commit | c07894bcea475c6bc3d658e65adce41733f8c3c8 (patch) | |
tree | 5a25aeed30bec6f539b1a4c6f4efbce52fca95bd /engines | |
parent | 6ef7e3748876e799cf37b8af15e95e5d3adce744 (diff) | |
download | scummvm-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.cpp | 5 |
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) { |