summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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: