diff --git a/MPF.Library/Aaru/Parameters.cs b/MPF.Library/Aaru/Parameters.cs index e3f852de..aeb6887c 100644 --- a/MPF.Library/Aaru/Parameters.cs +++ b/MPF.Library/Aaru/Parameters.cs @@ -1033,6 +1033,48 @@ namespace MPF.Aaru /// public override string GetDefaultExtension(MediaType? mediaType) => Converters.Extension(mediaType); + /// + public override List GetLogFilePaths(string basePath) + { + List logFiles = new List(); + switch (this.Type) + { + case MediaType.CDROM: + if (File.Exists($"{basePath}.cicm.xml")) + logFiles.Add($"{basePath}.cicm.xml"); + if (File.Exists($"{basePath}.ibg")) + logFiles.Add($"{basePath}.ibg"); + if (File.Exists($"{basePath}.log")) + logFiles.Add($"{basePath}.log"); + if (File.Exists($"{basePath}.mhddlog.bin")) + logFiles.Add($"{basePath}.mhddlog.bin"); + if (File.Exists($"{basePath}.resume.xml")) + logFiles.Add($"{basePath}.resume.xml"); + if (File.Exists($"{basePath}.sub.log")) + logFiles.Add($"{basePath}.sub.log"); + + break; + + case MediaType.DVD: + case MediaType.HDDVD: + case MediaType.BluRay: + if (File.Exists($"{basePath}.cicm.xml")) + logFiles.Add($"{basePath}.cicm.xml"); + if (File.Exists($"{basePath}.ibg")) + logFiles.Add($"{basePath}.ibg"); + if (File.Exists($"{basePath}.log")) + logFiles.Add($"{basePath}.log"); + if (File.Exists($"{basePath}.mhddlog.bin")) + logFiles.Add($"{basePath}.mhddlog.bin"); + if (File.Exists($"{basePath}.resume.xml")) + logFiles.Add($"{basePath}.resume.xml"); + + break; + } + + return logFiles; + } + /// public override bool IsDumpingCommand() { diff --git a/MPF.Library/DiscImageCreator/Parameters.cs b/MPF.Library/DiscImageCreator/Parameters.cs index 7f5f9bcb..09e12de7 100644 --- a/MPF.Library/DiscImageCreator/Parameters.cs +++ b/MPF.Library/DiscImageCreator/Parameters.cs @@ -1225,7 +1225,6 @@ namespace MPF.DiscImageCreator var currentFiles = Directory.GetFiles(Path.GetDirectoryName(basePath)); string cmdPath = currentFiles.FirstOrDefault(f => Regex.IsMatch(f, @"\d{8}T\d{6}")); - // TODO: Figure out how to get the filename for the former _cmd file... List logFiles = new List(); switch (this.Type) {