Beispiel #1
0
 public static Archive LoadIMG(string path)
 {
     string fileNameWithoutExtension = Path.GetFileNameWithoutExtension(path);
     ArrayList list = new ArrayList();
     if (File.Exists(path))
     {
         DataStream stream = new FileDataStream(path);
         int lk = stream.Length;
         string fileName = fileNameWithoutExtension;
         bool compressed = false;
         int lookup = 0;
         int num13 = stream.Length;
         int diskLength = stream.Length;
         list.Add(new ArchivedFile(fileName, stream, lookup, num13, diskLength, compressed, true));
     }
     return new Archive(fileNameWithoutExtension, (ArchivedFile[])list.ToArray(typeof(ArchivedFile)));
 }
Beispiel #2
0
        public static Archive LoadIMG(string path)
        {
            string    fileNameWithoutExtension = Path.GetFileNameWithoutExtension(path);
            ArrayList list = new ArrayList();

            if (File.Exists(path))
            {
                DataStream stream     = new FileDataStream(path);
                int        lk         = stream.Length;
                string     fileName   = fileNameWithoutExtension;
                bool       compressed = false;
                int        lookup     = 0;
                int        num13      = stream.Length;
                int        diskLength = stream.Length;
                list.Add(new ArchivedFile(fileName, stream, lookup, num13, diskLength, compressed, true));
            }
            return(new Archive(fileNameWithoutExtension, (ArchivedFile[])list.ToArray(typeof(ArchivedFile))));
        }