public XLoadDesc loadLua(Action <XLoadDesc> cb = null) { string path = "Assets/Res/lua/"; #if (UNITY_STANDALONE_WIN && UNITY_EDITOR) // 肯定是forceLoadAB if (!XConf.forceLoadAB) { path = "lua"; } #endif return(XLoad.loadAll(path, typeof(TextAsset), cb)); }
static public int loadAll_s(IntPtr l) { try { int argc = LuaDLL.lua_gettop(l); if (argc == 2) { System.String a1; checkType(l, 1, out a1); System.Action <XLoadDesc> a2; LuaDelegation.checkDelegate(l, 2, out a2); var ret = XLoad.loadAll(a1, a2); pushValue(l, true); pushValue(l, ret); return(2); } else if (argc == 3) { System.String a1; checkType(l, 1, out a1); System.Type a2; checkType(l, 2, out a2); System.Action <XLoadDesc> a3; LuaDelegation.checkDelegate(l, 3, out a3); var ret = XLoad.loadAll(a1, a2, a3); pushValue(l, true); pushValue(l, ret); return(2); } pushValue(l, false); LuaDLL.lua_pushstring(l, "No matched override function loadAll to call"); return(2); } catch (Exception e) { return(error(l, e)); } }