# HG changeset patch # User Emmanuel Gil Peyrot # Date 1314297227 25200 # Node ID a701a89192a9cc5431759829c58c0f1764bf48ca # Parent 0efec109f7984c4deaca247c41811e4d103332be Add offset translation for all relative jumps. diff --git a/pytouhou/formats/ecl.py b/pytouhou/formats/ecl.py --- 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