Exemplo n.º 1
0
        /// <summary>
        /// 加载系统插件清单
        /// </summary>
        /// <returns></returns>
        private static XBundle LoadSystemBundleManifest()
        {
            try
            {
                Type   type = typeof(SystemBundleData);
                string xml  = BundleUtil.LoadResourceString(ConfigConstant.SYSTEM_MANIFEST, type.Assembly);

                if (string.IsNullOrEmpty(xml))
                {
                    return(null);
                }
                var xManifest = XBundle.Parse(xml) as XBundle;

                return(xManifest);
            }
            catch (Exception e)
            {
                Log.Debug(e);
            }
            return(null);
        }