Initial checkin for dcc v2. Includes support for play/record/fabricate.

This commit is contained in:
yrriban 2025-04-07 02:19:25 -04:00
parent 9a790b0b3a
commit e78453d6bd
8 changed files with 166 additions and 0 deletions

15
dcc/record.py Normal file
View file

@ -0,0 +1,15 @@
from cliff.command import Command
import dcc.config
import subprocess
class Record(Command):
def get_parser(self, prog_name):
parser = super().get_parser(prog_name)
parser.add_argument('wad')
parser.add_argument('map')
return parser
def take_action(self, parsed_args):
subprocess.run([dcc.config.DSDA] +
dcc.config.DsdaPreamble(parsed_args.wad, parsed_args.map) +
["-record", dcc.config.DemoOutPath(parsed_args.wad, parsed_args.map)])