aboutsummaryrefslogtreecommitdiff
path: root/engines/sludge/loadsave.cpp
diff options
context:
space:
mode:
authorSimei Yin2017-08-08 13:36:30 +0200
committerSimei Yin2017-08-08 14:08:29 +0200
commita751ad5530b991b92d36c04adff14410156c907a (patch)
tree674bcdf7f838bfbc688111b7b4e426da8d559382 /engines/sludge/loadsave.cpp
parentcff1308ed1abecb70f5d2789cf813af25d24c372 (diff)
downloadscummvm-rg350-a751ad5530b991b92d36c04adff14410156c907a.tar.gz
scummvm-rg350-a751ad5530b991b92d36c04adff14410156c907a.tar.bz2
scummvm-rg350-a751ad5530b991b92d36c04adff14410156c907a.zip
SLUDGE: Add thumbnail for save&load interface
Diffstat (limited to 'engines/sludge/loadsave.cpp')
-rw-r--r--engines/sludge/loadsave.cpp8
1 files changed, 3 insertions, 5 deletions
diff --git a/engines/sludge/loadsave.cpp b/engines/sludge/loadsave.cpp
index 1588ffdc01..21c80f7e25 100644
--- a/engines/sludge/loadsave.cpp
+++ b/engines/sludge/loadsave.cpp
@@ -44,7 +44,6 @@
#include "sludge/sound.h"
#include "sludge/loadsave.h"
#include "sludge/bg_effects.h"
-#include "sludge/thumbnail.h"
#include "sludge/utf8.h"
#include "sludge/version.h"
#include "sludge/graphics.h"
@@ -354,7 +353,7 @@ bool saveGame(const Common::String &fname) {
fp->writeByte(MAJOR_VERSION);
fp->writeByte(MINOR_VERSION);
- if (!saveThumbnail(fp))
+ if (!g_sludge->_gfxMan->saveThumbnail(fp))
return false;
fp->write(&fileTime, sizeof(FILETIME));
@@ -481,11 +480,10 @@ bool loadGame(const Common::String &fname) {
int majVersion = fp->readByte();
int minVersion = fp->readByte();
- ssgVersion = majVersion * 256 + minVersion;
-
+ ssgVersion = VERSION(majVersion, minVersion);
if (ssgVersion >= VERSION(1, 4)) {
- if (!skipThumbnail(fp))
+ if (!g_sludge->_gfxMan->skipThumbnail(fp))
return fatal(ERROR_GAME_LOAD_CORRUPT, fname);
}