comparison pcb @ 231:c417bb6c98bf

Search for 102h.exe in the game directory instead of the current directory.
author Thibaut Girka <thib@sitedethib.com>
date Fri, 30 Dec 2011 19:17:55 +0100
parents 9bb26dbb8438
children b0b8825296d0
comparison
equal deleted inserted replaced
230:1c24a6d93c1b 231:c417bb6c98bf
25 from pytouhou.games.pcb import PCBGame 25 from pytouhou.games.pcb import PCBGame
26 from pytouhou.game.player import PlayerState 26 from pytouhou.game.player import PlayerState
27 27
28 28
29 def main(path, stage_num, rank, character, data): 29 def main(path, stage_num, rank, character, data):
30 resource_loader = Loader() 30 resource_loader = Loader(path)
31 resource_loader.scan_archives(os.path.join(path, name) 31 resource_loader.scan_archives(data)
32 for name in data)
33 game = PCBGame(resource_loader, [PlayerState(character=character)], stage_num, rank, 16) 32 game = PCBGame(resource_loader, [PlayerState(character=character)], stage_num, rank, 16)
34 33
35 # Load stage data 34 # Load stage data
36 stage = resource_loader.get_stage('stage%d.std' % stage_num) 35 stage = resource_loader.get_stage('stage%d.std' % stage_num)
37 36