mirror of
https://github.com/chocolate-doom/statcheck.git
synced 2024-11-10 07:12:09 +00:00
Move command line options to Makefile
This commit is contained in:
parent
807b1ff29d
commit
71fbd71195
2 changed files with 5 additions and 6 deletions
|
@ -1,4 +1,8 @@
|
|||
|
||||
export SDL_VIDEODRIVER = dummy
|
||||
export DOOMOPTS = -mb 16 -nodraw -noblit -nosound \
|
||||
-noautoload -nogui -nograbmouse
|
||||
|
||||
OUTPUTS = $(subst expected/,output/,$(shell find expected/ -name '*.txt'))
|
||||
UNZIPOPTS = -L -o
|
||||
|
||||
|
|
|
@ -23,16 +23,11 @@ def read_config(path):
|
|||
lmp_file, out_file = sys.argv[1:]
|
||||
cfg = read_config(lmp_file)
|
||||
|
||||
os.environ["SDL_VIDEODRIVER"] = "dummy"
|
||||
|
||||
args = [
|
||||
"chocolate-doom", "-iwad", cfg["iwad"],
|
||||
"-statdump", out_file,
|
||||
"-timedemo", lmp_file,
|
||||
] + shlex.split("""
|
||||
-mb 16 -nodraw -noblit -nosound
|
||||
-noautoload -nogui -nograbmouse
|
||||
""")
|
||||
] + shlex.split(os.getenv("DOOMOPTS", ""))
|
||||
|
||||
if "pwad" in cfg:
|
||||
args.extend(("-file", join("extract", cfg["pwad"])))
|
||||
|
|
Loading…
Reference in a new issue