public static void Create(String ba2Archive, String folder, Archive2.Compression compression, Archive2.Format format) { if (!Directory.Exists(folder)) { return; } String compressionStr = Enum.GetName(typeof(Archive2.Compression), (int)compression); String formatStr = Enum.GetName(typeof(Archive2.Format), (int)format); folder = Path.GetFullPath(folder); Archive2.Call($"\"{folder}\" -create=\"{ba2Archive}\" -compression={compressionStr} -format={formatStr} -root=\"{folder}\" -tempFiles -quiet"); }
public static void Extract(String ba2Archive, String outputFolder) { Archive2.Call($"\"{ba2Archive}\" -extract=\"{outputFolder}\" -quiet"); }