Пример #1
0
        static int LoadCustomBytes_Lua(IntPtr L)
        {
            var customString = Api.lua_chkstring(L, 1);
            var path         = Api.lua_chkstring(L, 2);
            var bytes        = ResMgr.LoadCustomBytes(customString, path);

            if (bytes == null)
            {
                return(0);
            }
            Api.lua_pushbytes(L, bytes);
            return(1);
        }