mirror of
https://github.com/chocolate-doom/statcheck.git
synced 2024-11-24 21:32:47 +00:00
Set path to source port binary in Makefile
This commit is contained in:
parent
71fbd71195
commit
3243cc4968
2 changed files with 4 additions and 1 deletions
|
@ -1,4 +1,5 @@
|
|||
|
||||
export SOURCE_PORT = $(shell which chocolate-doom)
|
||||
export SDL_VIDEODRIVER = dummy
|
||||
export DOOMOPTS = -mb 16 -nodraw -noblit -nosound \
|
||||
-noautoload -nogui -nograbmouse
|
||||
|
|
|
@ -20,11 +20,13 @@ def read_config(path):
|
|||
|
||||
return result
|
||||
|
||||
source_port = os.getenv("SOURCE_PORT")
|
||||
assert source_port != "", "SOURCE_PORT environment variable not set."
|
||||
lmp_file, out_file = sys.argv[1:]
|
||||
cfg = read_config(lmp_file)
|
||||
|
||||
args = [
|
||||
"chocolate-doom", "-iwad", cfg["iwad"],
|
||||
source_port, "-iwad", cfg["iwad"],
|
||||
"-statdump", out_file,
|
||||
"-timedemo", lmp_file,
|
||||
] + shlex.split(os.getenv("DOOMOPTS", ""))
|
||||
|
|
Loading…
Reference in a new issue