summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--game/client.rpy7
1 files changed, 7 insertions, 0 deletions
diff --git a/game/client.rpy b/game/client.rpy
index a3b30e7..632e593 100644
--- a/game/client.rpy
+++ b/game/client.rpy
@@ -28,13 +28,16 @@ init 1 python:
if (r.status_code != 200):
stdout("Failure retrieving M+: ERROR %d" % r.status_code)
return False
+
status_update("Saving %s..." %fname, 64)
with open(installdir+"/%s" % fname, 'wb') as fd:
for chunk in r.iter_content(chunk_size=128):
fd.write(chunk)
+
status_update("Verifying MD5 hash...", 67)
r=requests.get(persistent.host+"/%s.md5" % fname, timeout=10.0)
md5up=r.text.replace("\n", "")
+
status_update("Verifying MD5 hash...", 69)
md5us=md5sum(installdir+"/%s" % fname)
if md5up != md5us:
@@ -48,12 +51,14 @@ init 1 python:
def install_manaplus():
installdir=get_path("manaplus")
## Detect your plataform
+ #########################################################
if renpy.linux:
status_update("Creating ManaPlus directory...", 61)
execute("mkdir %s" % installdir, shell=True)
if not download_manaplus("ManaPlus.AppImage"):
return False
status_update("Installation successful!", 75)
+ #########################################################
elif renpy.windows:
status_update("Creating ManaPlus directory...", 61)
execute("mkdir %s" % installdir, shell=True)
@@ -63,9 +68,11 @@ init 1 python:
with zipfile.ZipFile(installdir+"/ManaPlus.zip", 'r') as zip_ref:
zip_ref.extractall(installdir)
status_update("Installation successful!", 75)
+ #########################################################
#elif renpy.android:
#elif renpy.macintosh:
#elif renpy.emscripten: # web
+ #########################################################
else:
status_update("ERROR: Unsupported Plataform")
return False