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

Cfg: Make gfs calls temporary; also, fix layout cfg leading to bad builds

This commit is contained in:
gnosygnu
2016-12-25 13:30:21 -05:00
parent e698b1667f
commit 8db63bbbce
5 changed files with 25 additions and 26 deletions

View File

@@ -120,10 +120,10 @@ public class Xocfg_mgr implements Gfo_invk {
cache_mgr.Del(ctx, key);
}
public Object Invk(GfsCtx ctx, int ikey, String k, GfoMsg m) {
if (ctx.Match(k, Invk__set)) Set_str((String)m.ReadValAt(0), (String)m.ReadValAt(1), (String)m.ReadValAt(2));
if (ctx.Match(k, Invk__set_temp)) cache_mgr.Set_wo_save((String)m.ReadValAt(0), (String)m.ReadValAt(1), (String)m.ReadValAt(2));
else return Gfo_invk_.Rv_unhandled;
return this;
} private static final String Invk__set = "set";
} private static final String Invk__set_temp = "set_temp";
public static String Ctx__app = "app";
public static String[] Parse_io_cmd(String raw) {
String[] rv = new String[2];

View File

@@ -43,10 +43,12 @@ public class Xocfg_cache_mgr {
}
return grp.Get(ctx);
}
public void Set(String ctx, String key, String val) {
public void Set(String ctx, String key, String val) {Set(Bool_.Y, ctx, key, val);}
public void Set_wo_save(String ctx, String key, String val) {Set(Bool_.N, ctx, key, val);}
public void Set(boolean save, String ctx, String key, String val) {
Xocfg_cache_grp grp = Grps__get_or_load(key);
grp.Set(ctx, val);
db_usr.Set_str(ctx, key, val);
if (save) db_usr.Set_str(ctx, key, val);
grp.Pub(ctx, val);
}
public void Del(String ctx, String key) {