outputFormat is AaruFormat check

This commit is contained in:
Rebecca Wallander
2026-04-03 16:33:56 +02:00
parent 7166ade598
commit 77ab25def4

View File

@@ -58,6 +58,7 @@ using DVDDecryption = Aaru.Decryption.DVD.Dump;
using Track = Aaru.CommonTypes.Structs.Track;
using TrackType = Aaru.CommonTypes.Enums.TrackType;
using Version = Aaru.CommonTypes.Interop.Version;
using AaruFormat = Aaru.Images.AaruFormat;
// ReSharper disable JoinDeclarationAndInitializer
@@ -349,7 +350,7 @@ partial class Dump
return;
}
if(outputFormat.Format != "Aaru")
if(outputFormat is not AaruFormat)
{
StoppingErrorMessage?.Invoke(string.Format(Localization.Core.Output_format_does_not_support_0,
MediaTagType.NgcwJunkMap));