diff options
author | Johannes Schickel | 2008-08-05 11:32:16 +0000 |
---|---|---|
committer | Johannes Schickel | 2008-08-05 11:32:16 +0000 |
commit | b89c9c9b89a9ae21a5e0ebcf5db7d0d014062ad4 (patch) | |
tree | 74ae3ea7b3db66b3dbe514fda78cbbe5f2e63bd2 /engines/kyra | |
parent | f7cc93f71ab5b7526a69bae5df80abeafeef5d31 (diff) | |
download | scummvm-rg350-b89c9c9b89a9ae21a5e0ebcf5db7d0d014062ad4.tar.gz scummvm-rg350-b89c9c9b89a9ae21a5e0ebcf5db7d0d014062ad4.tar.bz2 scummvm-rg350-b89c9c9b89a9ae21a5e0ebcf5db7d0d014062ad4.zip |
Changed implementation parameters/return values to match definition.
svn-id: r33632
Diffstat (limited to 'engines/kyra')
-rw-r--r-- | engines/kyra/saveload.cpp | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/engines/kyra/saveload.cpp b/engines/kyra/saveload.cpp index 8bed4e57e1..31c5e15fa6 100644 --- a/engines/kyra/saveload.cpp +++ b/engines/kyra/saveload.cpp @@ -37,7 +37,7 @@ namespace Kyra { -KyraEngine_v1::kReadSaveHeaderError KyraEngine_v1::readSaveHeader(Common::InSaveFile *in, SaveHeader &header) { +KyraEngine_v1::kReadSaveHeaderError KyraEngine_v1::readSaveHeader(Common::SeekableReadStream *in, SaveHeader &header) { uint32 type = in->readUint32BE(); header.originalSave = false; header.oldHeader = false; @@ -111,10 +111,10 @@ KyraEngine_v1::kReadSaveHeaderError KyraEngine_v1::readSaveHeader(Common::InSave return (in->ioFailed() ? kRSHEIoError : kRSHENoError); } -Common::InSaveFile *KyraEngine_v1::openSaveForReading(const char *filename, SaveHeader &header) { +Common::SeekableReadStream *KyraEngine_v1::openSaveForReading(const char *filename, SaveHeader &header) { debugC(9, kDebugLevelMain, "KyraEngine_v1::openSaveForReading('%s', -)", filename); - Common::InSaveFile *in = 0; + Common::SeekableReadStream *in = 0; if (!(in = _saveFileMan->openForLoading(filename))) return 0; @@ -162,12 +162,12 @@ Common::InSaveFile *KyraEngine_v1::openSaveForReading(const char *filename, Save return in; } -Common::OutSaveFile *KyraEngine_v1::openSaveForWriting(const char *filename, const char *saveName) const { +Common::WriteStream *KyraEngine_v1::openSaveForWriting(const char *filename, const char *saveName) const { debugC(9, kDebugLevelMain, "KyraEngine_v1::openSaveForWriting('%s', '%s')", filename, saveName); if (_quitFlag) return 0; - Common::OutSaveFile *out = 0; + Common::WriteStream *out = 0; if (!(out = _saveFileMan->openForSaving(filename))) { warning("Can't create file '%s', game not saved", filename); return 0; @@ -212,7 +212,7 @@ bool KyraEngine_v1::saveFileLoadable(int slot) { return false; SaveHeader header; - Common::InSaveFile *in = openSaveForReading(getSavegameFilename(slot), header); + Common::SeekableReadStream *in = openSaveForReading(getSavegameFilename(slot), header); if (in) { delete in; |