示例#1
0
文件: Program.cs 项目: emoose/GzsTool
 private static void WriteFpkArchive(FpkFile fpkFile, string workingDirectory)
 {
     string outputPath = Path.Combine(workingDirectory, fpkFile.Name);
     string fileSystemInputDirectory = string.Format("{0}\\{1}_{2}", workingDirectory,
         Path.GetFileNameWithoutExtension(fpkFile.Name), Path.GetExtension(fpkFile.Name).Replace(".", ""));
     IDirectory inputDirectory = new FileSystemDirectory(fileSystemInputDirectory);
     using (FileStream output = new FileStream(outputPath, FileMode.Create))
     {
         fpkFile.Write(output, inputDirectory);
     }
 }