Beispiel #1
0
        public static fpkParser OpenFPK([DefaultVar] string path)
        {
            fpkDirFormat format = fpkDirFormat.GetFormat(path);

            if (format == null)
            {
                throw new Exception("Couldn't auto-detect the format of " + path);
            }
            return(new fpkParser(path, format));
        }
Beispiel #2
0
 public fpkParser(string path, fpkDirFormat dirFormat)
 {
     this.FilePath  = path;
     this.DirFormat = dirFormat;
     this.Subfiles  = DirFormat.ReadDirectory(path);
 }
Beispiel #3
0
 public fpkParser(string path, fpkDirFormat dirFormat)
 {
     this.FilePath = path;
     this.DirFormat = dirFormat;
     this.Subfiles = DirFormat.ReadDirectory(path);
 }