static int GetLuaScript(IntPtr L) { try { ToLua.CheckArgsCount(L, 1); string arg0 = ToLua.CheckString(L, 1); byte[] o = CAssetManager.GetLuaScript(arg0); ToLua.Push(L, o); return(1); } catch (Exception e) { return(LuaDLL.toluaL_exception(L, e)); } }
public virtual byte[] ReadFile(string fileName) { return(CAssetManager.GetLuaScript(fileName)); }