コード例 #1
0
        public CacheFile(string Filename, string Build)
            : base(Filename, Build)
        {
            Version = DefinitionSet.Halo3Retail;

            Header = new CacheHeader(this);
            IndexHeader = new Halo3Beta.CacheFile.CacheIndexHeader(this);
            IndexItems = new Halo3Beta.CacheFile.IndexTable(this);
            Strings = new StringTable(this);

            LocaleTables = new List<LocaleTable>();
            try
            {
                for (int i = 0; i < int.Parse(buildNode.Attributes["languageCount"].Value); i++)
                    LocaleTables.Add(new LocaleTable(this, (GameLanguage)i));
            }
            catch { LocaleTables.Clear(); }
        }
コード例 #2
0
        public CacheFile(string Filename, string Build)
            : base(Filename, Build)
        {
            Version = DefinitionSet.Halo3Retail;

            Header      = new CacheHeader(this);
            IndexHeader = new Halo3Beta.CacheFile.CacheIndexHeader(this);
            IndexItems  = new Halo3Beta.CacheFile.IndexTable(this);
            Strings     = new StringTable(this);

            LocaleTables = new List <LocaleTable>();
            try
            {
                for (int i = 0; i < int.Parse(buildNode.Attributes["languageCount"].Value); i++)
                {
                    LocaleTables.Add(new LocaleTable(this, (Language)i));
                }
            }
            catch { LocaleTables.Clear(); }
        }