Ticket #8369: dekyra.patch
File dekyra.patch, 706 bytes (added by , 20 years ago) |
---|
-
.cpp
old new 71 71 if (displayText) { 72 72 myscript.decodeTextArea(); 73 73 printf("\n\n"); 74 return true; 74 75 } 75 76 76 77 if (!displayOnlyOneScript) { … … 226 227 }; 227 228 228 229 static OpcodeDesc opcodeDesc[] = { 230 { 0x68, "0x68", "int" } 229 231 }; 230 232 231 233 if ((uint32)script >= _chunks[kEmc2Ordr]._size || script < 0) { … … 250 252 251 253 uint8 _currentCommand = 0; 252 254 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; 254 256 uint8* script_start = _chunks[kData]._data; 255 257 bool gotArgument = true; 256 258