From d029cf4164ebb54ea7bafcf934207cbd4db6f99a Mon Sep 17 00:00:00 2001 From: Matt Nadareski Date: Mon, 18 Nov 2024 15:39:43 -0500 Subject: [PATCH] Add IMA extension for floppy disks --- CHANGELIST.md | 1 + MPF.Processors/Generic.cs | 8 ++++++++ 2 files changed, 9 insertions(+) diff --git a/CHANGELIST.md b/CHANGELIST.md index f21c2aac..1b162cda 100644 --- a/CHANGELIST.md +++ b/CHANGELIST.md @@ -10,6 +10,7 @@ - Add `skeleton` to Redumper CD by default - Add unused "Generic" processor - Add Track 0/00/A/AA to Generic +- Add IMA extension for floppy disks ### 3.2.3 (2024-11-06) diff --git a/MPF.Processors/Generic.cs b/MPF.Processors/Generic.cs index 7890c2e4..6ebc0f8f 100644 --- a/MPF.Processors/Generic.cs +++ b/MPF.Processors/Generic.cs @@ -94,6 +94,8 @@ internal override List GetOutputFiles(string? baseDirectory, string fileModifiedDate = ProcessingTool.GetFileModifiedDate($"{basePath}.mds"); else if (File.Exists($"{basePath}.mdf")) fileModifiedDate = ProcessingTool.GetFileModifiedDate($"{basePath}.mdf"); + else if (File.Exists($"{basePath}.ima")) + fileModifiedDate = ProcessingTool.GetFileModifiedDate($"{basePath}.ima"); else return null; @@ -112,6 +114,12 @@ internal override List GetOutputFiles(string? baseDirectory, string if (rom != null) return GetDatafile(basePath, rom); } + else if (File.Exists($"{basePath}.ima")) + { + var rom = GetRom($"{basePath}.ima"); + if (rom != null) + return GetDatafile(basePath, rom); + } else if (File.Exists($"{basePath}.img")) { var rom = GetRom($"{basePath}.img");