Example #1
0
 internal void LanguagePacksReadFromCache(Halo2.CacheFile cf)
 {
     foreach (var lp in languagePacks)
     {
         lp.ReadFromCache(cf);
     }
 }
        public void FromCache(Halo2.CacheFile c, cache_file_sound_group snd)
        {
            var icti = c.TagIndexManager as InternalCacheTagIndex;
            var ugh_ = icti[icti.SoundGestaltTagIndex].TagDefinition as sound_cache_file_gestalt_group;

            Reconstruct(ugh_, snd);
        }
Example #3
0
        internal protected override Blam.CacheFile LoadCacheFile(BlamVersion game, string file_path, bool is_resource)
        {
            Blam.CacheFile cf = null;

            if ((game & BlamVersion.Halo2) != 0)
            {
                cf = new Halo2.CacheFile(file_path);
            }

            return(cf);
        }
 public void Setup(BlamPlatform platform, string mm, string sm, string ss)
 {
     if (platform == BlamPlatform.PC)
     {
         PC_MM = new CacheFile(mm);
         PC_SM = new CacheFile(sm);
         PC_SS = new CacheFile(ss);
     }
     else if (platform == BlamPlatform.Xbox)
     {
         Xbox_MM = new CacheFile(mm);
         Xbox_SM = new CacheFile(sm);
         Xbox_SS = new CacheFile(ss);
     }
     else
     {
         Alpha_MM = new CacheFile(mm);
         Alpha_SM = new CacheFile(sm);
     }
 }
Example #5
0
        internal void LanguagePackHeadersReadFromCache(Halo2.CacheFile cf)
        {
            const int k_expected_size = s_cache_language_pack.kSizeOf * (int)LanguageType.kMax;

            if (LanguagePacksOffset != -1 && LanguagePacksSizeOf == (uint)k_expected_size)
            {
                cf.InputStream.Seek(LanguagePacksOffset);

                languagePacks = new s_cache_language_pack[(int)LanguageType.kMax];
                for (int x = 0; x < languagePacks.Length; x++)
                {
                    (languagePacks[x] = new s_cache_language_pack(null)).Read(cf.InputStream);
                }
            }
            else
            {
                throw new Debug.ExceptionLog("Tried to read a custom language pack header with unexpected data! @{0} size: {1}",
                                             LanguagePacksOffset.ToString("X8"), LanguagePacksSizeOf.ToString("X8"));
            }
        }
 internal void LanguagePacksReadFromCache(Halo2.CacheFile c)
 {
     if (!English.IsLoaded)
     {
         English.ReadFromCache(c);
     }
     if (!Japanese.IsLoaded)
     {
         Japanese.ReadFromCache(c);
     }
     if (!German.IsLoaded)
     {
         German.ReadFromCache(c);
     }
     if (!French.IsLoaded)
     {
         French.ReadFromCache(c);
     }
     if (!Spanish.IsLoaded)
     {
         Spanish.ReadFromCache(c);
     }
     if (!Italian.IsLoaded)
     {
         Italian.ReadFromCache(c);
     }
     if (!Korean.IsLoaded)
     {
         Korean.ReadFromCache(c);
     }
     if (!Chinese.IsLoaded)
     {
         Chinese.ReadFromCache(c);
     }
     if (!Portuguese.IsLoaded)
     {
         Portuguese.ReadFromCache(c);
     }
 }
Example #7
0
			public void Setup(BlamPlatform platform, string mm, string sm, string ss)
			{
				if(platform == BlamPlatform.PC)
				{
					PC_MM = new CacheFile(mm);
					PC_SM = new CacheFile(sm);
					PC_SS = new CacheFile(ss);
				}
				else if(platform == BlamPlatform.Xbox)
				{
					Xbox_MM = new CacheFile(mm);
					Xbox_SM = new CacheFile(sm);
					Xbox_SS = new CacheFile(ss);
				}
				else
				{
					Alpha_MM = new CacheFile(mm);
					Alpha_SM = new CacheFile(sm);
				}
			}
Example #8
0
			/// <summary>
			/// Setup file IO
			/// </summary>
			/// <param name="pc">path to pc map file</param>
			/// <param name="alpha">path to alpha map file</param>
			/// <param name="path">path to place xbox map file</param>
			public void Setup(string pc, string alpha, string path)
			{
				PC = new CacheFile(pc);
				Alpha = new CacheFile(alpha);
			}
 /// <summary>
 /// Setup file IO
 /// </summary>
 /// <param name="pc">path to pc map file</param>
 /// <param name="alpha">path to alpha map file</param>
 /// <param name="path">path to place xbox map file</param>
 public void Setup(string pc, string alpha, string path)
 {
     PC    = new CacheFile(pc);
     Alpha = new CacheFile(alpha);
 }
 public void Read(Halo2.CacheFile c)
 {
 }
Example #11
0
		internal protected override Blam.CacheFile LoadCacheFile(BlamVersion game, string file_path, bool is_resource)
		{
			Blam.CacheFile cf = null;

			if ((game & BlamVersion.Halo2) != 0)
			{
				cf = new Halo2.CacheFile(file_path);
			}

			return cf;
		}
Example #12
0
 internal void TagDependencyGraphReadFromCache(Halo2.CacheFile cf)
 {
     TagDependencyGraph = new SharedDependencyGraph();
     TagDependencyGraph.Read(cf.InputStream);
 }