Exemple #1
0
        internal protected override Blam.CacheFile LoadCacheFile(BlamVersion game, string file_path, bool is_resource)
        {
            Blam.CacheFile cf = null;

            if ((game & BlamVersion.Halo1) != 0)
            {
                if (is_resource && game.IsPc())                 // hacks 'r us. f*****g data file cache...
                {
                    if (file_path.Contains("bitmaps.map"))
                    {
                        return(new BitmapCacheFile(game, file_path));
                    }
                    else if (file_path.Contains("sounds.map"))
                    {
                        return(new SoundCacheFile(game, file_path));
                    }
                    else if (file_path.Contains("loc.map"))
                    {
                        return(new LocCacheFile(game, file_path));
                    }
                }
                else
                {
                    cf = new Halo1.CacheFile(file_path);
                }
            }

            return(cf);
        }
Exemple #2
0
		internal protected override Blam.CacheFile LoadCacheFile(BlamVersion game, string file_path, bool is_resource)
		{
			Blam.CacheFile cf = null;

			if((game & BlamVersion.Halo1) != 0)
			{
				if (is_resource && game.IsPc()) // hacks 'r us. f*****g data file cache...
				{
					if		(file_path.Contains("bitmaps.map"))	return new BitmapCacheFile(game, file_path);
					else if (file_path.Contains("sounds.map"))	return new SoundCacheFile(game, file_path);
					else if (file_path.Contains("loc.map"))		return new LocCacheFile(game, file_path);
				}
				else
					cf = new Halo1.CacheFile(file_path);
			}

			return cf;
		}