1
0
mirror of https://github.com/gnosygnu/xowa.git synced 2026-03-02 03:49:30 +00:00

App_update: Add replace worker; add db auto-update

This commit is contained in:
gnosygnu
2016-11-23 09:35:26 -05:00
parent 103d005e62
commit fc55d0e2f9
13 changed files with 160 additions and 50 deletions

View File

@@ -32,6 +32,12 @@ class Io_zip_decompress_cmd__jre extends Io_zip_decompress_cmd__base {
boolean resumed = resume_name != null;
long file_cur_in_raw = resumed ? resume_file : 0;
long file_max_in_raw = prog_ui.Prog_data_end();
// if no size provided, guess length as 5x orig
if (file_max_in_raw == -1) {
file_max_in_raw = 4 * Io_mgr.Instance.QueryFil(src_fil).Size();
}
ZipEntry entry = null;
byte[] buffer = new byte[4096];
Io_mgr.Instance.CreateDirIfAbsent(trg_dir); // NOTE: assert that trg_dir exists