public void UnpackPackage(string file, string outPutDir) { ZipFile.ExtractToDirectory(file, outPutDir); File.Delete(outPutDir + "/" + ManifestPath); if (Directory.Exists(outPutDir + "/patches")) { Creator.ApplyPatches(outPutDir, PackageVersion); } }
public void UnpackPackage(string file, string outPutDir) { ZipFile.ExtractToDirectory(file, outPutDir); File.Delete(outPutDir + "/" + ManifestPath); if (!CheckHashes((PackageManifest)GetPackageManifest(file), outPutDir)) { Console.WriteLine("Checksum verification failed!"); } if (Directory.Exists(outPutDir + "/patches")) { Creator.ApplyPatches(outPutDir, PackageVersion); } }