Split out a separate wad-only base class from WadMap. Load the wad-specific config when using it. Support overriding settings during fabricate.

This commit is contained in:
yrriban 2025-05-30 02:07:06 -04:00
parent 057ac98843
commit 970e63e19b
3 changed files with 37 additions and 11 deletions

View file

@ -17,6 +17,12 @@ class Fabricate(dcc.doom_base.WadMap):
command = [self.dsda]
if not parsed_args.fg and shutil.which("xvfb-run") is not None:
command = ["xvfb-run"] + command
subprocess.run(command + self.dsda_preamble() +
options = []
for k,v in self._config.get("fabricate_options", {}).items():
list.append(options, f"{k}={v}")
if len(options) > 0:
options = ["-assign", ",".join(options)]
print(options)
subprocess.run(command + self.dsda_preamble() + options +
["-timedemo", self.demo_in_path()] +
["-viddump", self.video_path()])