Exemple #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));
        }
Exemple #2
0
 public fpkParser(string path, fpkDirFormat dirFormat)
 {
     this.FilePath  = path;
     this.DirFormat = dirFormat;
     this.Subfiles  = DirFormat.ReadDirectory(path);
 }
Exemple #3
0
 public fpkParser(string path, fpkDirFormat dirFormat)
 {
     this.FilePath = path;
     this.DirFormat = dirFormat;
     this.Subfiles = DirFormat.ReadDirectory(path);
 }