Ticket #3194: 1722153.diff

File 1722153.diff, 998 bytes (added by cyxx, 17 years ago)
  • scumm/saveload.h

     
    4747 * only saves/loads those which are valid for the version of the savegame
    4848 * which is being loaded/saved currently.
    4949 */
    50 #define CURRENT_VER 71
     50#define CURRENT_VER 72
    5151
    5252/**
    5353 * An auxillary macro, used to specify savegame versions. We use this instead
  • scumm/saveload.cpp

     
    11521152        if (_imuse && (_saveSound || !_saveTemporaryState)) {
    11531153                _imuse->save_or_load(s, this);
    11541154        }
     1155
     1156        //
     1157        // Save/load the charset renderer state
     1158        //
     1159        if (s->getVersion() >= VER(72)) {
     1160                if (s->isSaving()) {
     1161                        s->saveByte(_charset->getCurID());
     1162                } else {
     1163                        _charset->setCurID(s->loadByte());
     1164                }
     1165        }
    11551166}
    11561167
    11571168void ScummEngine_v0::saveOrLoad(Serializer *s) {