doomcc/doomcc/record.py
yrriban 5b2528831d Rename the dcc directory to doomcc.
Don't try and edit the files in the same change; that introduces a lot
of headaches.
2025-12-24 22:55:42 -05:00

17 lines
453 B
Python

import dcc.config
import dcc.doom_base
import os
class Record(dcc.doom_base.WadMap):
def take_action(self, parsed_args):
os.execv(
self.dsda,
[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