diff options
author | Jesusaves <cpntb1@ymail.com> | 2021-08-05 01:29:15 -0300 |
---|---|---|
committer | Jesusaves <cpntb1@ymail.com> | 2021-08-05 01:29:15 -0300 |
commit | f26c662a9aca1b46c9b46dfcf5fbd802b602b006 (patch) | |
tree | b490f286e3d209b58a1fec8757dd6560c5bf9ced /game/misc.rpy | |
parent | 0f5016be6df343847c61c34091aa18651f17e7df (diff) | |
download | client-f26c662a9aca1b46c9b46dfcf5fbd802b602b006.tar.gz client-f26c662a9aca1b46c9b46dfcf5fbd802b602b006.tar.bz2 client-f26c662a9aca1b46c9b46dfcf5fbd802b602b006.tar.xz client-f26c662a9aca1b46c9b46dfcf5fbd802b602b006.zip |
Fix the unmoving download bar
Diffstat (limited to 'game/misc.rpy')
-rw-r--r-- | game/misc.rpy | 5 |
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: |