mirror of
https://github.com/SabreTools/MPF.git
synced 2026-07-02 17:24:48 +00:00
Add Aaru log file paths, remove TODO in DIC
This commit is contained in:
@@ -1033,6 +1033,48 @@ namespace MPF.Aaru
|
||||
/// <inheritdoc/>
|
||||
public override string GetDefaultExtension(MediaType? mediaType) => Converters.Extension(mediaType);
|
||||
|
||||
/// <inheritdoc/>
|
||||
public override List<string> GetLogFilePaths(string basePath)
|
||||
{
|
||||
List<string> logFiles = new List<string>();
|
||||
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;
|
||||
}
|
||||
|
||||
/// <inheritdoc/>
|
||||
public override bool IsDumpingCommand()
|
||||
{
|
||||
|
||||
@@ -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<string> logFiles = new List<string>();
|
||||
switch (this.Type)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user