public SearchPath(string path) { if (path.EndsWith(".PAK")) { this.pack = FileSystem.LoadPackFile(path); if (this.pack == null) { Utilities.Error("Couldn't load packfile: {0}", path); } } else if (path.EndsWith(".PK3")) { this.pk3 = ZipFile.OpenRead(path); this.pk3filename = path; if (this.pk3 == null) { Utilities.Error("Couldn't load pk3file: {0}", path); } } else { this.filename = path; } }
public SearchPath(Pak.Pak pak) { this.pack = pak; }