summaryrefslogtreecommitdiff
path: root/game
diff options
context:
space:
mode:
authorJesusaves <cpntb1@ymail.com>2021-05-08 03:01:01 -0300
committerJesusaves <cpntb1@ymail.com>2021-05-08 03:01:01 -0300
commit310a9f50af58acfa6428b93e10640d5636226383 (patch)
treee8adea7f80bbb951c53473ee9ab3b417a76745ce /game
parentd4b8517586bc3b97cee15698da25c378c83e4669 (diff)
downloadrenpy-310a9f50af58acfa6428b93e10640d5636226383.tar.gz
renpy-310a9f50af58acfa6428b93e10640d5636226383.tar.bz2
renpy-310a9f50af58acfa6428b93e10640d5636226383.tar.xz
renpy-310a9f50af58acfa6428b93e10640d5636226383.zip
Spacing can go a long way =)
Diffstat (limited to 'game')
-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