Add --disable-autohost argument to MultiMystery.py

- If present, MultiMystery will not automatically host the generated game
This commit is contained in:
Chris 2020-04-21 00:02:03 -04:00
parent 356ff91cfd
commit a11bc58e7f
1 changed files with 14 additions and 9 deletions

View File

@ -17,6 +17,7 @@ import subprocess
import sys
import threading
import concurrent.futures
import argparse
def feedback(text: str):
@ -31,6 +32,9 @@ if __name__ == "__main__":
ModuleUpdate.update()
parser = argparse.ArgumentParser(add_help=False)
parser.add_argument('--disable_autohost', action='store_true')
args = parser.parse_args()
from Utils import get_public_ipv4, get_options
@ -189,6 +193,7 @@ if __name__ == "__main__":
for future in futures:
future.result() # make sure we close the zip AFTER any packing is done
if not args.disable_autohost:
if os.path.exists(os.path.join(output_path, multidataname)):
if os.path.exists("BerserkerMultiServer.exe"):
baseservercommand = "BerserkerMultiServer.exe" # compiled windows