Add -downloadonly flag
This commit is contained in:
parent
e65ab538e5
commit
d52f1cf594
@ -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":
|
||||
|
Loading…
Reference in New Issue
Block a user