mirror of
https://github.com/chocolate-doom/statcheck.git
synced 2025-02-08 00:32:28 +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'))
|
OUTPUTS = $(subst expected/,output/,$(shell find expected/ -name '*.txt'))
|
||||||
UNZIPOPTS = -L -o
|
UNZIPOPTS = -L -o
|
||||||
|
|
||||||
|
|
|
@ -23,16 +23,11 @@ def read_config(path):
|
||||||
lmp_file, out_file = sys.argv[1:]
|
lmp_file, out_file = sys.argv[1:]
|
||||||
cfg = read_config(lmp_file)
|
cfg = read_config(lmp_file)
|
||||||
|
|
||||||
os.environ["SDL_VIDEODRIVER"] = "dummy"
|
|
||||||
|
|
||||||
args = [
|
args = [
|
||||||
"chocolate-doom", "-iwad", cfg["iwad"],
|
"chocolate-doom", "-iwad", cfg["iwad"],
|
||||||
"-statdump", out_file,
|
"-statdump", out_file,
|
||||||
"-timedemo", lmp_file,
|
"-timedemo", lmp_file,
|
||||||
] + shlex.split("""
|
] + shlex.split(os.getenv("DOOMOPTS", ""))
|
||||||
-mb 16 -nodraw -noblit -nosound
|
|
||||||
-noautoload -nogui -nograbmouse
|
|
||||||
""")
|
|
||||||
|
|
||||||
if "pwad" in cfg:
|
if "pwad" in cfg:
|
||||||
args.extend(("-file", join("extract", cfg["pwad"])))
|
args.extend(("-file", join("extract", cfg["pwad"])))
|
||||||
|
|
Loading…
Reference in a new issue