Ticket #8369: dekyra.patch

File dekyra.patch, 706 bytes (added by lordhoto, 19 years ago)

update

  • .cpp

    old new  
    7171                if (displayText) {
    7272                        myscript.decodeTextArea();
    7373                        printf("\n\n");
     74                        return true;
    7475                }
    7576               
    7677                if (!displayOnlyOneScript) {
     
    226227        };
    227228       
    228229        static OpcodeDesc opcodeDesc[] = {
     230                { 0x68, "0x68", "int" }
    229231        };
    230232       
    231233        if ((uint32)script >= _chunks[kEmc2Ordr]._size || script < 0) {
     
    250252       
    251253        uint8 _currentCommand = 0;
    252254        uint8 _argument = 0;   
    253         _currentPos = (TO_BE_16(_chunks[kEmc2Ordr]._data[script]) << 1) + 2;   
     255        _currentPos = (TO_BE_16(((uint16*)_chunks[kEmc2Ordr]._data)[script]) << 1) + 2;
    254256        uint8* script_start = _chunks[kData]._data;
    255257        bool gotArgument = true;
    256258