doomcc/dcc/record.py

18 lines
455 B
Python
Raw Normal View History

import dcc.config
2025-04-23 18:38:46 -04:00
import dcc.doom_base
import subprocess
2025-06-11 22:43:16 -04:00
class Record(dcc.doom_base.WadMap):
2025-06-11 22:43:16 -04:00
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