Esempio n. 1
0
 public void LoadBLP(Stream file)
 {
     using (var blp = new BlpFile(file))
     {
         bmp = blp.GetBitmap(0);
     }
 }
Esempio n. 2
0
 public void LoadBLP(string filename)
 {
     if (!CASC.FileExists(filename))
     {
         new WoWFormatLib.Utils.MissingFile(filename);
         return;
     }
     else
     {
         using (var blp = new BlpFile(CASC.OpenFile(filename)))
         {
             bmp = blp.GetBitmap(0);
         }
     }
 }
Esempio n. 3
0
        public void LoadBLP(string filename)
        {
            if (!CASC.FileExists(filename))
            {
                new WoWFormatLib.Utils.MissingFile(filename);

                // @TODO Quick fix to get texture working when it doesn't exist. Happened because Blizzard accidentally referenced a texture on their shares instead of in files.
                using (var blp = new BlpFile(CASC.OpenFile(@"World\Expansion05\Doodads\IronHorde\Ember_Offset_Streak.blp")))
                {
                    bmp = blp.GetBitmap(0);
                }
            }
            else
            {
                using (var blp = new BlpFile(CASC.OpenFile(filename)))
                {
                    bmp = blp.GetBitmap(0);
                }
            }
        }