Mercurial > touhou
comparison eosd @ 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 | 8fa660da5f0c |
comparison
equal
deleted
inserted
replaced
230:1c24a6d93c1b | 231:c417bb6c98bf |
---|---|
38 from pytouhou.utils.random import Random | 38 from pytouhou.utils.random import Random |
39 prng = Random(replay.levels[stage_num-1].random_seed) | 39 prng = Random(replay.levels[stage_num-1].random_seed) |
40 else: | 40 else: |
41 prng = None | 41 prng = None |
42 | 42 |
43 resource_loader = Loader() | 43 resource_loader = Loader(path) |
44 resource_loader.scan_archives(os.path.join(path, name) | 44 resource_loader.scan_archives(data) |
45 for name in data) | |
46 game = EoSDGame(resource_loader, [PlayerState(character=character)], stage_num, rank, 16, | 45 game = EoSDGame(resource_loader, [PlayerState(character=character)], stage_num, rank, 16, |
47 prng=prng) | 46 prng=prng) |
48 | 47 |
49 # Load stage data | 48 # Load stage data |
50 stage = resource_loader.get_stage('stage%d.std' % stage_num) | 49 stage = resource_loader.get_stage('stage%d.std' % stage_num) |