Set extensions for Redumper in UI (fixes #521)

This commit is contained in:
Matt Nadareski
2023-07-18 20:56:08 -04:00
parent ad9f39f832
commit 19f58d9dde
2 changed files with 13 additions and 2 deletions

View File

@@ -4,6 +4,7 @@
- Don't pull comment fields that auto-populate
- Set best compression levels for log files
- Be more explicit about .NET 6 limitation
- Set extensions for Redumper in UI
### 2.6 (2023-07-14)

View File

@@ -13,8 +13,18 @@ namespace MPF.Modules.Redumper
/// <returns>Valid extension (with leading '.'), null on error</returns>
public static string Extension(MediaType? type)
{
// TODO: Determine what extensions are used for each supported type
return ".bin";
switch (type)
{
case MediaType.CDROM:
return ".bin";
case MediaType.DVD:
case MediaType.HDDVD:
case MediaType.BluRay:
return ".iso";
case MediaType.NONE:
default:
return null;
}
}
#endregion