Exemplo n.º 1
0
        /// <summary>
        /// 初始化.
        /// </summary>
        /// <param name="iPath">路径.</param>
        /// <param name="iGameName">游戏名.</param>
        public bool Init(string iPath, string iGameName)
        {
            try {
                this.Load(iPath);

                // 创建strings.xml对象
                this._stringsXml = this.CreateStringsXml();
//				if(null == this._stringsXml) {
//					return false;
//				}

                // 初始化Appliction
                this.InitApplicationInfo();

                // 初始化SDK版本信息.
                if (null == this.InitSDKVersions())
                {
                    return(false);
                }

                // 应用用户自定义数据
                this.ApplyUserData(iGameName);
            } catch (Exception e) {
                UtilsLog.Fatal("ManifestBase", "Init()::Failed!!! Exeption:{0}",
                               e.Message);
                return(false);
            }

            return(true);
        }
Exemplo n.º 2
0
        /// <summary>
        /// 初始化.
        /// </summary>
        /// <param name="iPath">I path.</param>
        protected virtual bool Init(string iPath)
        {
            try {
                // 保存路径
                this.SavePath = iPath;

                // 加载
                this.Load(iPath);
            } catch (Exception e) {
                UtilsLog.Fatal("StringsXMLBase", "Init()::Failed!!! Exeption:{0}",
                               e.Message);
                return(false);
            }

            return(true);
        }