comparison pytouhou/formats/anm0.py @ 239:901489c21d19

Fix a few crashes in the anmrunner, disable fullscreen switch, change alt+Fx to shift+Fx
author Thibaut Girka <thib@sitedethib.com>
date Sun, 01 Jan 2012 21:12:50 +0100
parents 741860192b56
children d3ba32a9096e
comparison
equal deleted inserted replaced
238:0e1762b1ab9f 239:901489c21d19
135 # Translate offsets to instruction pointers and register interrupts 135 # Translate offsets to instruction pointers and register interrupts
136 for instr_offset, (j, instr) in zip(instruction_offsets, enumerate(anm.scripts[i])): 136 for instr_offset, (j, instr) in zip(instruction_offsets, enumerate(anm.scripts[i])):
137 time, opcode, args = instr 137 time, opcode, args = instr
138 if opcode == 5: 138 if opcode == 5:
139 args = (instruction_offsets.index(args[0]),) 139 args = (instruction_offsets.index(args[0]),)
140 if opcode == 22: 140 elif opcode == 22:
141 interrupt = args[0] 141 interrupt = args[0]
142 anm.scripts[i].interrupts[interrupt] = j + 1 142 anm.scripts[i].interrupts[interrupt] = j + 1
143 anm.scripts[i][j] = time, opcode, args 143 anm.scripts[i][j] = time, opcode, args
144 #TODO 144 #TODO
145 145