[Scummvm-cvs-logs] SF.net SVN: scummvm:[34553] scummvm/trunk/engines/scumm/saveload.cpp
wjpalenstijn at users.sourceforge.net
wjpalenstijn at users.sourceforge.net
Mon Sep 15 08:52:01 CEST 2008
Revision: 34553
http://scummvm.svn.sourceforge.net/scummvm/?rev=34553&view=rev
Author: wjpalenstijn
Date: 2008-09-15 06:52:00 +0000 (Mon, 15 Sep 2008)
Log Message:
-----------
replace ioFailed by err
Modified Paths:
--------------
scummvm/trunk/engines/scumm/saveload.cpp
Modified: scummvm/trunk/engines/scumm/saveload.cpp
===================================================================
--- scummvm/trunk/engines/scumm/saveload.cpp 2008-09-15 06:51:15 UTC (rev 34552)
+++ scummvm/trunk/engines/scumm/saveload.cpp 2008-09-15 06:52:00 UTC (rev 34553)
@@ -126,7 +126,7 @@
Serializer ser(0, out, CURRENT_VER);
saveOrLoad(&ser);
out->finalize();
- if (out->ioFailed()) {
+ if (out->err()) {
delete out;
debug(1, "State save as '%s' FAILED", filename.c_str());
return false;
@@ -141,7 +141,7 @@
hdr.size = in->readUint32LE();
hdr.ver = in->readUint32LE();
in->read(hdr.name, sizeof(hdr.name));
- return !in->ioFailed() && hdr.type == MKID_BE('SCVM');
+ return !in->err() && hdr.type == MKID_BE('SCVM');
}
bool ScummEngine::loadState(int slot, bool compat) {
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
More information about the Scummvm-git-logs
mailing list