Mercurial > touhou
diff pytouhou/formats/ecl.py @ 66:a701a89192a9
Add offset translation for all relative jumps.
author | Emmanuel Gil Peyrot <linkmauve@linkmauve.fr> |
---|---|
date | Thu, 25 Aug 2011 11:33:47 -0700 |
parents | d469012368b3 |
children | e2cb9d434dc2 |
line wrap: on
line diff
--- a/pytouhou/formats/ecl.py +++ b/pytouhou/formats/ecl.py @@ -176,7 +176,7 @@ class ECL(object): # Translate offsets to instruction pointers for instr_offset, (i, instr) in zip(instruction_offsets, enumerate(ecl.subs[-1])): time, opcode, rank_mask, param_mask, args = instr - if opcode in (2, 31): # relative_jump + if opcode in (2, 29, 30, 31, 32, 33, 34): # relative_jump frame, relative_offset = args args = frame, instruction_offsets.index(instr_offset + relative_offset) elif opcode == 3: # relative_jump_ex