Move command line options to Makefile

This commit is contained in:
Simon Howard 2024-08-31 02:09:35 -04:00
parent 807b1ff29d
commit 71fbd71195
2 changed files with 5 additions and 6 deletions

View file

@ -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

View file

@ -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"])))