summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJesusaves <cpntb1@ymail.com>2021-08-05 01:29:15 -0300
committerJesusaves <cpntb1@ymail.com>2021-08-05 01:29:15 -0300
commitf26c662a9aca1b46c9b46dfcf5fbd802b602b006 (patch)
treeb490f286e3d209b58a1fec8757dd6560c5bf9ced
parent0f5016be6df343847c61c34091aa18651f17e7df (diff)
downloadclient-f26c662a9aca1b46c9b46dfcf5fbd802b602b006.tar.gz
client-f26c662a9aca1b46c9b46dfcf5fbd802b602b006.tar.bz2
client-f26c662a9aca1b46c9b46dfcf5fbd802b602b006.tar.xz
client-f26c662a9aca1b46c9b46dfcf5fbd802b602b006.zip
Fix the unmoving download bar
-rw-r--r--game/misc.rpy5
1 files changed, 5 insertions, 0 deletions
diff --git a/game/misc.rpy b/game/misc.rpy
index 6a088d4..d13d473 100644
--- a/game/misc.rpy
+++ b/game/misc.rpy
@@ -402,6 +402,7 @@ init python:
max_value = int(r.headers.get('content-length', 0))
print "Blocks: %d" % max_value
block_size = 1024 #1 Kibibyte
+ max_value = max_value / block_size
statusmsg = "Downloading the zip file..."
with open(get_path("allinone.zip"), 'wb') as f:
for data in r.iter_content(block_size):
@@ -425,6 +426,10 @@ init python:
print "Blocks: %d" % max_value
for f in zip_ref.namelist():
try:
+ # FIXME: Check if file already exists.
+ # `continue` if it is already in the allfiles
+ # (Right now, it overrides; Alright, but then it
+ # goes ahead and pollutes persistent.allfiles...)
print("Extracting %s..." % f)
monday = "extra_"+f
if "." in f: