diff options
-rw-r--r-- | game/client.rpy | 14 |
1 files changed, 12 insertions, 2 deletions
diff --git a/game/client.rpy b/game/client.rpy index 38d8e6e..032ab47 100644 --- a/game/client.rpy +++ b/game/client.rpy @@ -188,9 +188,19 @@ init 2 python: ## Theirs try: installdir=get_path("manaplus") - if (persistent.evol2cli != "builtin"): # FIXME Simplify + ## Get the file name + ## Get the MD5 Hash + if renpy.linux and persistent.evol2cli == "manaverse: + r=requests.get(manaverseLinux+".md5", timeout=10.0) + elif renpy.windows and persistent.evol2cli == "manaverse: + r=requests.get(manaverseWin64+".md5", timeout=10.0) + elif (persistent.evol2cli != "builtin"): + ## FIXME: Simplify fname=handle_client(launch=True, download=False).split("/").pop() - r=requests.get(persistent.host+"/%s.md5" % fname, timeout=10.0) + r=requests.get(persistent.host+"/%s.md5" % fname, timeout=10.0) + else: + raise Exception("Built-in has no MD5 Hash (builtin)") + ## Sanitize the MD5 Hash md5up=r.text.replace("\n", "") except: traceback.print_exc() |