aboutsummaryrefslogtreecommitdiff
path: root/engines/scumm/saveload.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'engines/scumm/saveload.cpp')
-rw-r--r--engines/scumm/saveload.cpp14
1 files changed, 2 insertions, 12 deletions
diff --git a/engines/scumm/saveload.cpp b/engines/scumm/saveload.cpp
index 54dfca9eea..c7193a55f3 100644
--- a/engines/scumm/saveload.cpp
+++ b/engines/scumm/saveload.cpp
@@ -184,18 +184,8 @@ bool ScummEngine::loadState(int slot, bool compat) {
}
// Since version 52 a thumbnail is saved directly after the header.
- if (hdr.ver >= VER(52)) {
- uint32 type = in->readUint32BE();
- // Check for the THMB header. Also, work around a bug which caused
- // the chunk type (incorrectly) to be written in LE on LE machines.
- if (! (type == MKID_BE('THMB') || (hdr.ver < VER(55) && type == MKID_BE('BMHT')))){
- warning("Can not load thumbnail");
- delete in;
- return false;
- }
- uint32 size = in->readUint32BE();
- in->skip(size - 8);
- }
+ if (hdr.ver >= VER(52))
+ skipThumbnailHeader(in);
// Since version 56 we save additional information about the creation of
// the save game and the save time.