Replace ioFailed by err.

svn-id: r34557
This commit is contained in:
Travis Howell 2008-09-15 12:37:24 +00:00
parent 5f2ceea1df
commit 1b34b58c01

View File

@ -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;