diff options
| author | Max Horn | 2003-01-13 01:29:45 +0000 |
|---|---|---|
| committer | Max Horn | 2003-01-13 01:29:45 +0000 |
| commit | eb9726c4974111ac56bbc256658785f06d4df531 (patch) | |
| tree | ed335402a935d3f49c80675f752a4d1bad1201cd /scumm/saveload.cpp | |
| parent | 1f88542417b58ce2e71708217f17ebcc7de78c20 (diff) | |
| download | scummvm-rg350-eb9726c4974111ac56bbc256658785f06d4df531.tar.gz scummvm-rg350-eb9726c4974111ac56bbc256658785f06d4df531.tar.bz2 scummvm-rg350-eb9726c4974111ac56bbc256658785f06d4df531.zip | |
added V8 scaling code
svn-id: r6440
Diffstat (limited to 'scumm/saveload.cpp')
| -rw-r--r-- | scumm/saveload.cpp | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/scumm/saveload.cpp b/scumm/saveload.cpp index bf9ea4427c..d5520e828a 100644 --- a/scumm/saveload.cpp +++ b/scumm/saveload.cpp @@ -532,6 +532,16 @@ void Scumm::saveOrLoad(Serializer *s, uint32 savegameVersion) MKEND() }; + const SaveLoadEntry scaleSlotsEntries[] = { + MKLINE(ScaleSlot, x1, sleUint16, VER_V13), + MKLINE(ScaleSlot, y1, sleUint16, VER_V13), + MKLINE(ScaleSlot, scale1, sleUint16, VER_V13), + MKLINE(ScaleSlot, x2, sleUint16, VER_V13), + MKLINE(ScaleSlot, y2, sleUint16, VER_V13), + MKLINE(ScaleSlot, scale2, sleUint16, VER_V13), + MKEND() + }; + int i, j; int var120Backup; int var98Backup; @@ -564,6 +574,9 @@ void Scumm::saveOrLoad(Serializer *s, uint32 savegameVersion) s->saveLoadArrayOf(_string, 6, sizeof(_string[0]), stringTabEntries); s->saveLoadArrayOf(_colorCycle, 16, sizeof(_colorCycle[0]), colorCycleEntries); + if (savegameVersion >= VER_V13) + s->saveLoadArrayOf(_scaleSlots, 20, sizeof(_scaleSlots[0]), scaleSlotsEntries); + for (i = rtFirst; i <= rtLast; i++) if (res.mode[i] == 0) for (j = 1; j < res.num[i]; j++) |
