Add -downloadonly flag

This commit is contained in:
Fierelier 2021-06-17 18:28:34 +02:00
parent e65ab538e5
commit d52f1cf594

View File

@ -298,6 +298,7 @@ def main():
print("")
if not "version" in lv: lv["version"] = input("Version ID: ")
if "-downloadonly" in sys.argv: lv["name"] = "Player"
if not "name" in lv: lv["name"] = input("Player name: ")
global tmpFile
tmpFile = p(lv["gamePath"],"file.tmp")
@ -321,6 +322,9 @@ def main():
except Exception as e:
print("Could not download: " +str(e))
if "-downloadonly" in sys.argv:
exit(0)
loadLibraries = {}
for library in libraries:
if library["type"] == "client":