Initial checkin for dcc v2. Includes support for play/record/fabricate.
This commit is contained in:
parent
9a790b0b3a
commit
e78453d6bd
8 changed files with 166 additions and 0 deletions
15
dcc/record.py
Normal file
15
dcc/record.py
Normal 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)])
|
Loading…
Add table
Add a link
Reference in a new issue