aboutsummaryrefslogtreecommitdiff
path: root/engines/sky
diff options
context:
space:
mode:
authorMax Horn2009-05-19 11:42:14 +0000
committerMax Horn2009-05-19 11:42:14 +0000
commit65b5d318140c7ff846455a37ec7ae63e635bcdcf (patch)
tree77f278ceec1e54e097056df0b2820e414eed8290 /engines/sky
parent4d59f620f9fdc1dfd7ccd6c7d30a0b5de480eb20 (diff)
downloadscummvm-rg350-65b5d318140c7ff846455a37ec7ae63e635bcdcf.tar.gz
scummvm-rg350-65b5d318140c7ff846455a37ec7ae63e635bcdcf.tar.bz2
scummvm-rg350-65b5d318140c7ff846455a37ec7ae63e635bcdcf.zip
COMMON: Removed Stream::ioFailed() and clearIOFailed(), as they are deprecated; however, retained ioFailed in SeekableReadStream and File for now (so for now this mainly affects WriteStream subclasses)
svn-id: r40725
Diffstat (limited to 'engines/sky')
-rw-r--r--engines/sky/control.cpp6
-rw-r--r--engines/sky/detection.cpp2
2 files changed, 4 insertions, 4 deletions
diff --git a/engines/sky/control.cpp b/engines/sky/control.cpp
index dde437f268..a24e3eeb04 100644
--- a/engines/sky/control.cpp
+++ b/engines/sky/control.cpp
@@ -1087,7 +1087,7 @@ void Control::saveDescriptions(const Common::StringList &list) {
outf->write(list[cnt].c_str(), list[cnt].size() + 1);
}
outf->finalize();
- if (!outf->ioFailed())
+ if (!outf->err())
ioFailed = false;
delete outf;
}
@@ -1114,7 +1114,7 @@ void Control::doAutoSave(void) {
outf->write(saveData, fSize);
outf->finalize();
- if (outf->ioFailed())
+ if (outf->err())
displayMessage(0, "Unable to write autosave file '%s'. Disk full?", fName, _saveFileMan->popErrorDesc().c_str());
delete outf;
@@ -1135,7 +1135,7 @@ uint16 Control::saveGameToFile(void) {
uint32 writeRes = outf->write(saveData, fSize);
outf->finalize();
- if (outf->ioFailed())
+ if (outf->err())
writeRes = 0;
free(saveData);
delete outf;
diff --git a/engines/sky/detection.cpp b/engines/sky/detection.cpp
index 6ad6e651ef..3f01177cec 100644
--- a/engines/sky/detection.cpp
+++ b/engines/sky/detection.cpp
@@ -262,7 +262,7 @@ void SkyMetaEngine::removeSaveState(const char *target, int slot) const {
outf->write(savenames[cnt].c_str(), savenames[cnt].size() + 1);
}
outf->finalize();
- if (!outf->ioFailed())
+ if (!outf->err())
ioFailed = false;
delete outf;
}