diff options
| author | Max Horn | 2009-05-19 11:42:14 +0000 |
|---|---|---|
| committer | Max Horn | 2009-05-19 11:42:14 +0000 |
| commit | 65b5d318140c7ff846455a37ec7ae63e635bcdcf (patch) | |
| tree | 77f278ceec1e54e097056df0b2820e414eed8290 /engines/sword1 | |
| parent | 4d59f620f9fdc1dfd7ccd6c7d30a0b5de480eb20 (diff) | |
| download | scummvm-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/sword1')
| -rw-r--r-- | engines/sword1/control.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/engines/sword1/control.cpp b/engines/sword1/control.cpp index e016eaec13..9077e4f8c3 100644 --- a/engines/sword1/control.cpp +++ b/engines/sword1/control.cpp @@ -1140,7 +1140,7 @@ void Control::saveGameToFile(uint8 slot) { for (uint32 cnt2 = 0; cnt2 < playerSize; cnt2++) outf->writeUint32LE(playerRaw[cnt2]); outf->finalize(); - if (outf->ioFailed()) + if (outf->err()) displayMessage(0, "Couldn't write to file '%s'. Device full? (%s)", fName, _saveFileMan->popErrorDesc().c_str()); delete outf; } @@ -1288,7 +1288,7 @@ bool Control::convertSaveGame(uint8 slot, char* desc) { newSave->write(saveData, dataSize); newSave->finalize(); - if (newSave->ioFailed()) + if (newSave->err()) warning("Couldn't write to file '%s'. Device full?", newFileName); delete newSave; |
