public ArchiveData() { m_pPakItem = new PakItem(); }
private static void SaveFile(BinaryReader binaryReader, string directory, string subDirectory, PakItem item) { var path = Path.Combine(directory, subDirectory, item.Path.Substring(1)); var dir = Path.GetDirectoryName(path); Directory.CreateDirectory(dir); using (var fs = File.Open(path, FileMode.Create)) { var bytes = PakReader.ReadItem(binaryReader, item); fs.Write(bytes, 0, bytes.Length); } }