예제 #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];
 }
예제 #2
0
파일: Blp.cs 프로젝트: wampirr/IceFlake
        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];
        }