Ejemplo n.º 1
0
 public Blp(string path)
 {
     var handle = MPQ.OpenFile(path);
     if (handle == IntPtr.Zero)
         throw new FileNotFoundException();
     Data = new BlpData(new MPQStream(handle));
     _cache = new Image[Data.MipCount];
 }
Ejemplo n.º 2
0
        public Blp(string path)
        {
            var handle = MPQ.OpenFile(path);

            if (handle == IntPtr.Zero)
            {
                throw new FileNotFoundException();
            }
            Data   = new BlpData(new MPQStream(handle));
            _cache = new Image[Data.MipCount];
        }