mirror of
https://github.com/gnosygnu/xowa.git
synced 2026-03-02 03:49:30 +00:00
v2.6.4.1
This commit is contained in:
@@ -100,7 +100,7 @@ public class App_cmd_arg {
|
||||
if (val_has_dir != Op_sys.Tid_nil) {
|
||||
if (dir) { // NOTE: need to do extra logic to guarantee trailing "/"; JAVA:7 apparently strips "/dir/" to "/dir" when passed in as argument; DATE:2013-03-20
|
||||
String val_dir_spr = val_has_dir == Op_sys.Tid_lnx ? Op_sys.Lnx.Fsys_dir_spr_str() : Op_sys.Wnt.Fsys_dir_spr_str();
|
||||
if (!String_.HasAtEnd(val_str, val_dir_spr))
|
||||
if (!String_.Has_at_end(val_str, val_dir_spr))
|
||||
val_str += val_dir_spr;
|
||||
return Io_url_.new_dir_(val_str);
|
||||
}
|
||||
|
||||
@@ -44,7 +44,7 @@ public class App_cmd_mgr {
|
||||
errs.Clear(); tmp_vals.Clear();
|
||||
for (int i = 0; i < ary_len; i++) {
|
||||
String itm = ary[i];
|
||||
if (String_.HasAtBgn(itm, arg_prefix)) { // key
|
||||
if (String_.Has_at_bgn(itm, arg_prefix)) { // key
|
||||
if (arg != null) {
|
||||
String[] tmp_ary = tmp_vals.To_str_ary();
|
||||
if (!arg.Parse(this, tmp_ary)) {continue;}
|
||||
|
||||
@@ -27,7 +27,7 @@ public class Io_zip_mgr_mok implements Io_zip_mgr {
|
||||
public byte[] Unzip_bry(byte[] src, int bgn, int len) {
|
||||
if (src == Bry_.Empty) return src;
|
||||
byte[] section = Bry_.Mid(src, bgn, bgn + len);
|
||||
if (!Bry_.HasAtBgn(section, Bry_zipped, 0, section.length)) throw Err_.new_("src not zipped: " + String_.new_u8(section));
|
||||
if (!Bry_.Has_at_bgn(section, Bry_zipped, 0, section.length)) throw Err_.new_("src not zipped: " + String_.new_u8(section));
|
||||
return Bry_.Mid(section, Bry_zipped.length, section.length);
|
||||
}
|
||||
public void Unzip_to_dir(Io_url src_fil, Io_url trg_dir) {}
|
||||
|
||||
Reference in New Issue
Block a user