aboutsummaryrefslogtreecommitdiff
path: root/engines/scumm/saveload.cpp
diff options
context:
space:
mode:
authorMax Horn2008-02-01 23:32:20 +0000
committerMax Horn2008-02-01 23:32:20 +0000
commit511019bd83c55d47fdc0e3c94220d3a68e851779 (patch)
treea76f425905c0b53b0ad5ed1888696f8ff7a02e31 /engines/scumm/saveload.cpp
parent0ae9fe74674c4487bb74c2582fe03e74cc7da720 (diff)
downloadscummvm-rg350-511019bd83c55d47fdc0e3c94220d3a68e851779.tar.gz
scummvm-rg350-511019bd83c55d47fdc0e3c94220d3a68e851779.tar.bz2
scummvm-rg350-511019bd83c55d47fdc0e3c94220d3a68e851779.zip
Change InSaveFile -> SeekableReadStream where possible
svn-id: r30722
Diffstat (limited to 'engines/scumm/saveload.cpp')
-rw-r--r--engines/scumm/saveload.cpp12
1 files changed, 6 insertions, 6 deletions
diff --git a/engines/scumm/saveload.cpp b/engines/scumm/saveload.cpp
index bb05859c24..b9e3a9287b 100644
--- a/engines/scumm/saveload.cpp
+++ b/engines/scumm/saveload.cpp
@@ -130,7 +130,7 @@ bool ScummEngine::saveState(int slot, bool compat) {
return true;
}
-static bool loadSaveGameHeader(Common::InSaveFile *in, SaveGameHeader &hdr) {
+static bool loadSaveGameHeader(Common::SeekableReadStream *in, SaveGameHeader &hdr) {
hdr.type = in->readUint32BE();
hdr.size = in->readUint32LE();
hdr.ver = in->readUint32LE();
@@ -140,7 +140,7 @@ static bool loadSaveGameHeader(Common::InSaveFile *in, SaveGameHeader &hdr) {
bool ScummEngine::loadState(int slot, bool compat) {
char filename[256];
- Common::InSaveFile *in;
+ Common::SeekableReadStream *in;
int i, j;
SaveGameHeader hdr;
int sb, sh;
@@ -433,7 +433,7 @@ void ScummEngine::listSavegames(bool *marks, int num) {
bool ScummEngine::getSavegameName(int slot, char *desc) {
char filename[256];
- Common::InSaveFile *in;
+ Common::SeekableReadStream *in;
SaveGameHeader hdr;
makeSavegameName(filename, slot, false);
@@ -469,7 +469,7 @@ bool ScummEngine::getSavegameName(int slot, char *desc) {
Graphics::Surface *ScummEngine::loadThumbnailFromSlot(int slot) {
char filename[256];
- Common::InSaveFile *in;
+ Common::SeekableReadStream *in;
SaveGameHeader hdr;
makeSavegameName(filename, slot, false);
@@ -497,7 +497,7 @@ Graphics::Surface *ScummEngine::loadThumbnailFromSlot(int slot) {
bool ScummEngine::loadInfosFromSlot(int slot, InfoStuff *stuff) {
char filename[256];
- Common::InSaveFile *in;
+ Common::SeekableReadStream *in;
SaveGameHeader hdr;
makeSavegameName(filename, slot, false);
@@ -537,7 +537,7 @@ bool ScummEngine::loadInfosFromSlot(int slot, InfoStuff *stuff) {
return true;
}
-bool ScummEngine::loadInfos(Common::InSaveFile *file, InfoStuff *stuff) {
+bool ScummEngine::loadInfos(Common::SeekableReadStream *file, InfoStuff *stuff) {
memset(stuff, 0, sizeof(InfoStuff));
SaveInfoSection section;