mirror of
https://github.com/aaru-dps/Aaru.Server.git
synced 2025-12-16 19:24:27 +00:00
Add interface to pass dump hardware list and CICM XML metadata to/from images.
This commit is contained in:
@@ -39,6 +39,7 @@ using DiscImageChef.CommonTypes;
|
||||
using DiscImageChef.Console;
|
||||
using DiscImageChef.Decoders;
|
||||
using DiscImageChef.Filters;
|
||||
using Schemas;
|
||||
using Version = DiscImageChef.Interop.Version;
|
||||
|
||||
namespace DiscImageChef.DiscImages
|
||||
@@ -394,6 +395,9 @@ namespace DiscImageChef.DiscImages
|
||||
return null;
|
||||
}
|
||||
|
||||
public List<DumpHardwareType> DumpHardware => null;
|
||||
public CICMMetadataType CicmMetadata => null;
|
||||
|
||||
public IEnumerable<MediaTagType> SupportedMediaTags => new MediaTagType[] { };
|
||||
public IEnumerable<SectorTagType> SupportedSectorTags => new[] {SectorTagType.AppleSectorTag};
|
||||
public IEnumerable<MediaType> SupportedMediaTypes =>
|
||||
@@ -420,7 +424,7 @@ namespace DiscImageChef.DiscImages
|
||||
|
||||
if(sectors > 0xFFFFFF)
|
||||
{
|
||||
ErrorMessage = $"Too many sectors";
|
||||
ErrorMessage = "Too many sectors";
|
||||
return false;
|
||||
}
|
||||
|
||||
@@ -752,6 +756,18 @@ namespace DiscImageChef.DiscImages
|
||||
return false;
|
||||
}
|
||||
|
||||
public bool SetDumpHardware(List<DumpHardwareType> dumpHardware)
|
||||
{
|
||||
// Not supported
|
||||
return false;
|
||||
}
|
||||
|
||||
public bool SetCicmMetadata(CICMMetadataType metadata)
|
||||
{
|
||||
// Not supported
|
||||
return false;
|
||||
}
|
||||
|
||||
struct BluHeader
|
||||
{
|
||||
public byte[] DeviceName;
|
||||
|
||||
Reference in New Issue
Block a user