Skip to content

Commit

Permalink
Add IMA extension for floppy disks
Browse files Browse the repository at this point in the history
  • Loading branch information
mnadareski committed Nov 18, 2024
1 parent 74d52c2 commit d029cf4
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 0 deletions.
1 change: 1 addition & 0 deletions CHANGELIST.md
Original file line number Diff line number Diff line change
Expand Up @@ -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)

Expand Down
8 changes: 8 additions & 0 deletions MPF.Processors/Generic.cs
Original file line number Diff line number Diff line change
Expand Up @@ -94,6 +94,8 @@ internal override List<OutputFile> 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;

Expand All @@ -112,6 +114,12 @@ internal override List<OutputFile> 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");
Expand Down

0 comments on commit d029cf4

Please sign in to comment.