comparison pytouhou/vm/anmrunner.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 0e1762b1ab9f
children 02de1563fa18
comparison
equal deleted inserted replaced
238:0e1762b1ab9f 239:901489c21d19
46 new_ip = self.script.interrupts.get(interrupt, None) 46 new_ip = self.script.interrupts.get(interrupt, None)
47 if new_ip is None: 47 if new_ip is None:
48 new_ip = self.script.interrupts.get(-1, None) 48 new_ip = self.script.interrupts.get(-1, None)
49 if new_ip is None: 49 if new_ip is None:
50 return False 50 return False
51 else: 51 self.instruction_pointer = new_ip
52 self.instruction_pointer = new_ip 52 self.frame, opcode, args = self.script[self.instruction_pointer]
53 self.frame, opcode, args = self.script[self.instruction_pointer] 53 self.waiting = False
54 self.waiting = False 54 return True
55 return True
56 55
57 56
58 def run_frame(self): 57 def run_frame(self):
59 if not self._running: 58 if not self._running:
60 return False 59 return False