Major refactor to make handling name/path manipulation easier.

Most of this is now in doom_base.py, which stores wad/map/name, exposes them as
properties, and also takes care of most common tasks needed for building
command lines and such.
This commit is contained in:
yrriban 2025-05-13 05:46:26 -04:00
parent 85d3686f1c
commit 2438995093
11 changed files with 113 additions and 100 deletions

View file

@ -17,7 +17,6 @@ class Fabricate(dcc.doom_base.WadMap):
command = [dcc.config.DSDA]
if not parsed_args.fg and shutil.which("xvfb-run") is not None:
command = ["xvfb-run"] + command
subprocess.run(command +
dcc.config.DsdaPreamble(parsed_args.wad, parsed_args.map) +
["-timedemo", dcc.config.DemoInPath(parsed_args.wad, parsed_args.map, parsed_args.name)] +
["-viddump", dcc.config.VideoPath(parsed_args.wad, parsed_args.map, parsed_args.name)])
subprocess.run(command + self.dsda_preamble() +
["-timedemo", self.demo_in_path()] +
["-viddump", self.video_path()])