doomcc/dcc/record.py
yrriban 00334120b0 Support setting options in all cases where dsda is invoked.
Also allow overriding options for the fabricate and record commands.
2025-07-26 10:56:37 -04:00

17 lines
455 B
Python

import dcc.config
import dcc.doom_base
import subprocess
class Record(dcc.doom_base.WadMap):
def take_action(self, parsed_args):
subprocess.run(
[self.dsda] + self.dsda_preamble() +
["-record", self.demo_out_path()]
)
def options_dict(self):
opt_dict = super().options_dict()
for k, v in self._config.get("record_options", {}).items():
opt_dict[k] = v
return opt_dict