/// <summary> /// Dumps an ISO's contents from the specified ISO file to the provided output path. /// </summary> /// <param name="inputPath">Path of the ISO to dump</param> /// <param name="outputPath">Path to dump to</param> public static void DumpISOContents(string inputPath, string outputPath) { ISO iso = new ISO(); using (FileStream stream = new FileStream(inputPath, FileMode.Open, FileAccess.Read)) { EndianBinaryReader reader = new EndianBinaryReader(stream, Endian.Big); iso.DumpToDisk(iso.LoadISO(reader), outputPath); } }
/// <summary> /// Dumps an ISO's contents from the specified root to the provided output path. /// </summary> /// <param name="root">ISO to dump</param> /// <param name="outputPath">Path to dump to</param> public static void DumpISOContents(VirtualFilesystemDirectory root, string outputPath) { ISO iso = new ISO(); iso.DumpToDisk(root, outputPath); }