When generating dsda text file, automatically skip to the end of the file, and don't show the window if possible.
This commit is contained in:
parent
9570d11cdc
commit
652fbf4b08
1 changed files with 7 additions and 2 deletions
|
@ -2,6 +2,7 @@ import dcc.config
|
|||
import dcc.doom_base
|
||||
import os
|
||||
import re
|
||||
import shutil
|
||||
import subprocess
|
||||
import zipfile
|
||||
|
||||
|
@ -15,9 +16,13 @@ class DSDA(dcc.doom_base.WadMap):
|
|||
dip = dcc.config.DemoInPath(parsed_args.wad, parsed_args.map)
|
||||
dtp = dcc.config.DsdaTextPath(parsed_args.wad, parsed_args.map)
|
||||
if not dtp.exists():
|
||||
subprocess.run([dcc.config.DSDA] +
|
||||
command = [dcc.config.DSDA]
|
||||
if shutil.which("xvfb-run") is not None:
|
||||
command = ["xvfb-run"] + command
|
||||
# TODO: negative tics should seek from the end, but this doesn't seem to work.
|
||||
subprocess.run(command +
|
||||
dcc.config.DsdaPreamble(parsed_args.wad, parsed_args.map) +
|
||||
["-playdemo", dip, "-export_text_file"])
|
||||
["-fastdemo", dip, "-nosound", "-skiptic", "999999999", "-export_text_file"])
|
||||
editor = "nano"
|
||||
if "EDITOR" in os.environ:
|
||||
editor = os.environ["EDITOR"]
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue