GRAPHICS: Renamed skipThumbnailHeader to skipThumbnail.

svn-id: r51668
This commit is contained in:
Johannes Schickel 2010-08-02 22:28:30 +00:00
parent 0dba655085
commit 4e33b7a3be
6 changed files with 8 additions and 9 deletions

View file

@ -122,7 +122,7 @@ KyraEngine_v1::kReadSaveHeaderError KyraEngine_v1::readSaveHeader(Common::Seekab
header.thumbnail = 0;
}
} else {
Graphics::skipThumbnailHeader(*in);
Graphics::skipThumbnail(*in);
}
}

View file

@ -748,7 +748,7 @@ void gamestate_restore(EngineState *s, Common::SeekableReadStream *fh) {
}
// We don't need the thumbnail here, so just read it and discard it
Graphics::skipThumbnailHeader(*fh);
Graphics::skipThumbnail(*fh);
s->reset(true);
s->saveLoadWithSerializer(ser); // FIXME: Error handling?

View file

@ -364,7 +364,7 @@ bool ScummEngine::loadState(int slot, bool compat) {
}
}
Graphics::skipThumbnailHeader(*in);
Graphics::skipThumbnail(*in);
}
// Since version 56 we save additional information about the creation of
@ -721,7 +721,7 @@ bool ScummEngine::loadInfosFromSlot(const char *target, int slot, InfoStuff *stu
return false;
}
if (!Graphics::skipThumbnailHeader(*in)) {
if (!Graphics::skipThumbnail(*in)) {
delete in;
return false;
}

View file

@ -1175,8 +1175,7 @@ bool Control::restoreGameFromFile(uint8 slot) {
if (saveVersion < 2) // These older version of the savegames used a flag to signal presence of thumbnail
inf->skip(1);
if (Graphics::checkThumbnailHeader(*inf))
Graphics::skipThumbnailHeader(*inf);
Graphics::skipThumbnail(*inf);
inf->readUint32BE(); // save date
inf->readUint16BE(); // save time

View file

@ -82,7 +82,7 @@ bool checkThumbnailHeader(Common::SeekableReadStream &in) {
return hasHeader;
}
bool skipThumbnailHeader(Common::SeekableReadStream &in) {
bool skipThumbnail(Common::SeekableReadStream &in) {
uint32 position = in.pos();
ThumbnailHeader header;

View file

@ -39,11 +39,11 @@ namespace Graphics {
bool checkThumbnailHeader(Common::SeekableReadStream &in);
/**
* Skips a thumbnail header, if present.
* Skips a thumbnail, if present.
*
* @param in stream to process
*/
bool skipThumbnailHeader(Common::SeekableReadStream &in);
bool skipThumbnail(Common::SeekableReadStream &in);
/**
* Lodas a thumbnail from the given input stream.