Ticket #1791: comi_default_charset.diff

File comi_default_charset.diff, 2.6 KB (added by cyxx, 17 years ago)
  • scumm/intern.h

     
    866866        };
    867867       
    868868protected:
    869         int _verbCharset, _verbLineSpacing;
     869        int _verbLineSpacing;
    870870        bool _existLanguageFile;
    871871        char *_languageBuffer;
    872872        LangIndexNode *_languageIndex;
  • scumm/scumm.cpp

     
    819819#ifndef DISABLE_SCUMM_7_8
    820820ScummEngine_v7::ScummEngine_v7(OSystem *syst, const DetectorResult &dr)
    821821        : ScummEngine_v6(syst, dr) {
    822         _verbCharset = 0;
    823822        _verbLineSpacing = 10;
    824823
    825824        _smushFrameRate = 0;
  • scumm/saveload.cpp

     
    11881188
    11891189        const SaveLoadEntry V7Entries[] = {
    11901190                MKLINE(ScummEngine_v7, _subtitleQueuePos, sleInt32, VER(61)),
    1191                 MKLINE(ScummEngine_v7, _verbCharset, sleInt32, VER(68)),
     1191                MK_OBSOLETE(ScummEngine_v7, _verbCharset, sleInt32, VER(68), VER(68)),
    11921192                MKLINE(ScummEngine_v7, _verbLineSpacing, sleInt32, VER(68)),
    11931193                MKEND()
    11941194        };
  • scumm/script_v8.cpp

     
    677677
    678678void ScummEngine_v8::o8_cursorCommand() {
    679679        byte subOp = fetchScriptByte();
    680         int a, i;
     680        int a;
    681681        int args[16];
    682682
    683683        switch (subOp) {
     
    725725                setCursorTransparency(pop());
    726726                break;
    727727        case 0xE7:              // SO_CHARSET_SET
    728                 _verbCharset = pop();
     728                _string[0]._default.charset = pop();
    729729                break;
    730730        case 0xE8:              // SO_CHARSET_COLOR
    731731                getStackList(args, ARRAYSIZE(args));
    732                 for (i = 0; i < 16; i++)
    733                         _charsetColorMap[i] = _charsetData[_string[1]._default.charset][i] = (unsigned char)args[i];
    734732                break;
    735733        case 0xE9:              // SO_CURSOR_PUT
    736734                {
     
    10891087                vs->hicolor = 0;
    10901088                vs->dimcolor = 8;
    10911089                vs->type = kTextVerbType;
    1092                 vs->charset_nr = _verbCharset;
     1090                vs->charset_nr = _string[0]._default.charset;
    10931091                vs->curmode = 0;
    10941092                vs->saveid = 0;
    10951093                vs->key = 0;
  • 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 68
     50#define CURRENT_VER 69
    5151
    5252/**
    5353 * An auxillary macro, used to specify savegame versions. We use this instead