From f26c662a9aca1b46c9b46dfcf5fbd802b602b006 Mon Sep 17 00:00:00 2001 From: Jesusaves Date: Thu, 5 Aug 2021 01:29:15 -0300 Subject: Fix the unmoving download bar --- game/misc.rpy | 5 +++++ 1 file changed, 5 insertions(+) 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: -- cgit v1.2.3-70-g09d2