diff options
author | Max Horn | 2005-10-22 23:42:12 +0000 |
---|---|---|
committer | Max Horn | 2005-10-22 23:42:12 +0000 |
commit | 899eb271c6ade38b4fe4ebe82131591124e9f68e (patch) | |
tree | 334c766ca1ee0a62b413ae4bb52c4e56e3689296 /scumm/saveload.cpp | |
parent | b9b49c3b55a3625f9a56fb47ca0001f069739fed (diff) | |
download | scummvm-rg350-899eb271c6ade38b4fe4ebe82131591124e9f68e.tar.gz scummvm-rg350-899eb271c6ade38b4fe4ebe82131591124e9f68e.tar.bz2 scummvm-rg350-899eb271c6ade38b4fe4ebe82131591124e9f68e.zip |
Got rid of 'ref' code (or rather: hack) in the save/load system
svn-id: r19246
Diffstat (limited to 'scumm/saveload.cpp')
-rw-r--r-- | scumm/saveload.cpp | 10 |
1 files changed, 0 insertions, 10 deletions
diff --git a/scumm/saveload.cpp b/scumm/saveload.cpp index fac979c1b9..f41576aa26 100644 --- a/scumm/saveload.cpp +++ b/scumm/saveload.cpp @@ -1547,10 +1547,6 @@ void Serializer::saveEntries(void *d, const SaveLoadEntry *sle) { // Skip obsolete entries if (type & 128) sle++; - } else if (size == 0xFF) { - // save reference - void *ptr = *((void **)at); - saveUint16(ptr ? ((*_save_ref) (_ref_me, type, ptr) + 1) : 0); } else { // save entry int columns = 1; @@ -1586,12 +1582,6 @@ void Serializer::loadEntries(void *d, const SaveLoadEntry *sle) { // Skip entries which are not present in this save game version if (type & 128) sle++; - } else if (size == 0xFF) { - // load reference... - int num = loadUint16(); - // ...but only use it if it's still there in CURRENT_VER - if (sle->maxVersion == CURRENT_VER) - *((void **)at) = num ? (*_load_ref) (_ref_me, type, num - 1) : NULL; } else { // load entry int columns = 1; |