Add interface to pass dump hardware list and CICM XML metadata to/from images.

This commit is contained in:
2018-01-28 20:29:46 +00:00
parent db766ac76e
commit df5f062500
65 changed files with 3470 additions and 2727 deletions

View File

@@ -39,6 +39,7 @@ using DiscImageChef.CommonTypes;
using DiscImageChef.Console;
using DiscImageChef.Filters;
using DiscImageChef.Helpers;
using Schemas;
namespace DiscImageChef.DiscImages
{
@@ -228,6 +229,9 @@ namespace DiscImageChef.DiscImages
return null;
}
public List<DumpHardwareType> DumpHardware => null;
public CICMMetadataType CicmMetadata => null;
public byte[] ReadSector(ulong sectorAddress)
{
return ReadSectors(sectorAddress, 1);
@@ -346,7 +350,7 @@ namespace DiscImageChef.DiscImages
if(sectors > 90 * 2 * 255)
{
ErrorMessage = $"Too many sectors";
ErrorMessage = "Too many sectors";
return false;
}
@@ -555,6 +559,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;
}
[StructLayout(LayoutKind.Sequential, Pack = 1)]
struct HdkHeader
{