Exemple #1
0
 /// <summary>
 /// Loads a WAD file.
 /// </summary>
 /// <param name="wad"></param>
 /// <returns></returns>
 public static WAD Load(Stream wad)
 {
     WAD w = new WAD();
     w.parseWad(wad);
     return w;
 }
Exemple #2
0
        /// <summary>
        /// Loads a WAD file.
        /// </summary>
        /// <param name="wadFile"></param>
        /// <returns></returns>
        public static WAD Load(byte[] wadFile)
        {
            WAD w = new WAD();
            MemoryStream ms = new MemoryStream(wadFile);

            try { w.parseWad(ms); }
            catch { ms.Dispose(); throw; }

            ms.Dispose();
            return w;
        }