Skip to content

Commit

Permalink
SCI32: Use selector lookup in Torin script patch instead of magic num…
Browse files Browse the repository at this point in the history
…bers
  • Loading branch information
csnover committed Oct 1, 2016
1 parent d527e75 commit 084dfe9
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions engines/sci/engine/script_patches.cpp
Expand Up @@ -4600,16 +4600,16 @@ static const SciScriptPatcherEntry sq6Signatures[] = {
// references are reg_ts, so this array needs to be created as an IDArray
// instead
static const uint16 torinInventItemSlotsSignature[] = {
0x38, SIG_UINT16(0x8d), // pushi $8d (new)
0x78, // push1
0x38, SIG_SELECTOR16(new), // pushi new
0x78, // push1
SIG_MAGICDWORD,
0x67, 0x2e, // pTos $2e (invSlotsTot)
0x51, 0x0b, // class IntArray
0x67, 0x2e, // pTos $2e (invSlotsTot)
0x51, 0x0b, // class IntArray
SIG_END
};

static const uint16 torinInventItemSlotsPatch[] = {
PATCH_ADDTOOFFSET(+3), // pushi $8d (new)
PATCH_ADDTOOFFSET(+3), // pushi new
PATCH_ADDTOOFFSET(+1), // push1
PATCH_ADDTOOFFSET(+2), // pTos $2e (invSlotsTot)
0x51, 0x0c, // class IDArray
Expand Down

0 comments on commit 084dfe9

Please sign in to comment.