aboutsummaryrefslogtreecommitdiff
path: root/engines/sci/debug.h
diff options
context:
space:
mode:
authorColin Snover2016-10-27 20:04:30 -0500
committerColin Snover2016-10-27 20:23:10 -0500
commite12496bd0c2a15d4e7701422ca9fd860482dcb1f (patch)
tree7cb59af2c2fd915ad6d7d105d046458ae718cce2 /engines/sci/debug.h
parent9b1a2555f950738fa9ef2cbe5b5fba54a500715c (diff)
downloadscummvm-rg350-e12496bd0c2a15d4e7701422ca9fd860482dcb1f.tar.gz
scummvm-rg350-e12496bd0c2a15d4e7701422ca9fd860482dcb1f.tar.bz2
scummvm-rg350-e12496bd0c2a15d4e7701422ca9fd860482dcb1f.zip
SCI32: Read byte/string array values as signed in SCI2.1early-
KQ7 1.51 writes int16s from the save game catalogue into a Str object, then retrieves byte 0 from the string and compares it to -1. This happens to work out because (1) characters were treated as signed in SCI2.1early and earlier, and (2) int16s in the save game catalogue were little-endian. In SCI2.1mid and later, this trick no longer works because characters are treated as unsigned and get zero-extended instead. Fixes Trac#9632.
Diffstat (limited to 'engines/sci/debug.h')
0 files changed, 0 insertions, 0 deletions