diff --git a/MPF.Library/CleanRIp/Parameters.cs b/MPF.Library/CleanRIp/Parameters.cs index c9ce3006..84008c0c 100644 --- a/MPF.Library/CleanRIp/Parameters.cs +++ b/MPF.Library/CleanRIp/Parameters.cs @@ -99,6 +99,26 @@ namespace MPF.CleanRip } } + /// + public override List GetLogFilePaths(string basePath) + { + List logFiles = new List(); + switch (this.Type) + { + case MediaType.DVD: // Only added here to help users; not strictly correct + case MediaType.NintendoGameCubeGameDisc: + case MediaType.NintendoWiiOpticalDisc: + if (File.Exists($"{basePath}-dumpinfo.txt")) + logFiles.Add($"{basePath}-dumpinfo.txt"); + if (File.Exists($"{basePath}.bca")) + logFiles.Add($"{basePath}.bca"); + + break; + } + + return logFiles; + } + #endregion #region Information Extraction Methods diff --git a/MPF.Library/UmdImageCreator/Parameters.cs b/MPF.Library/UmdImageCreator/Parameters.cs index 8d1fd916..5682d259 100644 --- a/MPF.Library/UmdImageCreator/Parameters.cs +++ b/MPF.Library/UmdImageCreator/Parameters.cs @@ -100,6 +100,28 @@ namespace MPF.UmdImageCreator } } + /// + public override List GetLogFilePaths(string basePath) + { + List logFiles = new List(); + switch (this.Type) + { + case MediaType.UMD: + if (File.Exists($"{basePath}_disc.txt")) + logFiles.Add($"{basePath}_disc.txt"); + if (File.Exists($"{basePath}_mainError.txt")) + logFiles.Add($"{basePath}_mainError.txt"); + if (File.Exists($"{basePath}_mainInfo.txt")) + logFiles.Add($"{basePath}_mainInfo.txt"); + if (File.Exists($"{basePath}_volDesc.txt")) + logFiles.Add($"{basePath}_volDesc.txt"); + + break; + } + + return logFiles; + } + #endregion #region Information Extraction Methods