Add -downloadonly flag
This commit is contained in:
parent
e65ab538e5
commit
d52f1cf594
@ -298,6 +298,7 @@ def main():
|
|||||||
|
|
||||||
print("")
|
print("")
|
||||||
if not "version" in lv: lv["version"] = input("Version ID: ")
|
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: ")
|
if not "name" in lv: lv["name"] = input("Player name: ")
|
||||||
global tmpFile
|
global tmpFile
|
||||||
tmpFile = p(lv["gamePath"],"file.tmp")
|
tmpFile = p(lv["gamePath"],"file.tmp")
|
||||||
@ -321,6 +322,9 @@ def main():
|
|||||||
except Exception as e:
|
except Exception as e:
|
||||||
print("Could not download: " +str(e))
|
print("Could not download: " +str(e))
|
||||||
|
|
||||||
|
if "-downloadonly" in sys.argv:
|
||||||
|
exit(0)
|
||||||
|
|
||||||
loadLibraries = {}
|
loadLibraries = {}
|
||||||
for library in libraries:
|
for library in libraries:
|
||||||
if library["type"] == "client":
|
if library["type"] == "client":
|
||||||
|
Loading…
Reference in New Issue
Block a user