aboutsummaryrefslogtreecommitdiff
path: root/engines
diff options
context:
space:
mode:
authorTravis Howell2008-09-15 12:37:24 +0000
committerTravis Howell2008-09-15 12:37:24 +0000
commit1b34b58c01789372c5a1a0bd744ccca2dafaf005 (patch)
treef2bc8889cf3401b1cc356b8a9bc57368f76cada9 /engines
parent5f2ceea1df3d11969e3828e3fd24cffed7203aea (diff)
downloadscummvm-rg350-1b34b58c01789372c5a1a0bd744ccca2dafaf005.tar.gz
scummvm-rg350-1b34b58c01789372c5a1a0bd744ccca2dafaf005.tar.bz2
scummvm-rg350-1b34b58c01789372c5a1a0bd744ccca2dafaf005.zip
Replace ioFailed by err.
svn-id: r34557
Diffstat (limited to 'engines')
-rw-r--r--engines/agos/saveload.cpp8
1 files changed, 4 insertions, 4 deletions
diff --git a/engines/agos/saveload.cpp b/engines/agos/saveload.cpp
index a07e46a34c..c1a4e91c95 100644
--- a/engines/agos/saveload.cpp
+++ b/engines/agos/saveload.cpp
@@ -1056,7 +1056,7 @@ bool AGOSEngine::loadGame(const char *filename, bool restartMode) {
writeVariable(i, f->readUint16BE());
}
- if (f->ioFailed()) {
+ if (f->err()) {
error("load failed");
}
@@ -1140,7 +1140,7 @@ bool AGOSEngine::saveGame(uint slot, const char *caption) {
}
f->finalize();
- bool result = !f->ioFailed();
+ bool result = !f->err();
delete f;
_lockWord &= ~0x100;
@@ -1331,7 +1331,7 @@ bool AGOSEngine_Elvira2::loadGame(const char *filename, bool restartMode) {
_superRoomNumber = f->readUint16BE();
}
- if (f->ioFailed()) {
+ if (f->err()) {
error("load failed");
}
@@ -1503,7 +1503,7 @@ bool AGOSEngine_Elvira2::saveGame(uint slot, const char *caption) {
}
f->finalize();
- bool result = !f->ioFailed();
+ bool result = !f->err();
delete f;
_lockWord &= ~0x100;