mirror of
https://github.com/aaru-dps/Aaru.git
synced 2025-12-16 19:24:25 +00:00
Add "Author" field to plugins.
This commit is contained in:
@@ -50,8 +50,9 @@ namespace DiscImageChef.Partitions
|
||||
const uint TYPE_RISCIX_SCSI = 2;
|
||||
const uint TYPE_MASK = 15;
|
||||
|
||||
public string Name => "Acorn FileCore partitions";
|
||||
public Guid Id => new Guid("A7C8FEBE-8D00-4933-B9F3-42184C8BA808");
|
||||
public string Name => "Acorn FileCore partitions";
|
||||
public Guid Id => new Guid("A7C8FEBE-8D00-4933-B9F3-42184C8BA808");
|
||||
public string Author => "Natalia Portillo";
|
||||
|
||||
public bool GetInformation(IMediaImage imagePlugin, out List<Partition> partitions, ulong sectorOffset)
|
||||
{
|
||||
@@ -91,12 +92,14 @@ namespace DiscImageChef.Partitions
|
||||
{
|
||||
Partition part = new Partition
|
||||
{
|
||||
Size = (ulong)bootBlock.discRecord.disc_size_high * 0x100000000 + bootBlock.discRecord.disc_size,
|
||||
Size =
|
||||
(ulong)bootBlock.discRecord.disc_size_high * 0x100000000 + bootBlock.discRecord.disc_size,
|
||||
Length =
|
||||
((ulong)bootBlock.discRecord.disc_size_high * 0x100000000 + bootBlock.discRecord.disc_size) /
|
||||
imagePlugin.Info.SectorSize,
|
||||
((ulong)bootBlock.discRecord.disc_size_high * 0x100000000 +
|
||||
bootBlock.discRecord.disc_size) / imagePlugin.Info.SectorSize,
|
||||
Type = "ADFS",
|
||||
Name = StringHandlers.CToString(bootBlock.discRecord.disc_name, Encoding.GetEncoding("iso-8859-1"))
|
||||
Name = StringHandlers.CToString(bootBlock.discRecord.disc_name,
|
||||
Encoding.GetEncoding("iso-8859-1"))
|
||||
};
|
||||
if(part.Size > 0)
|
||||
{
|
||||
|
||||
@@ -53,8 +53,9 @@ namespace DiscImageChef.Partitions
|
||||
/// <summary>Old indicator for HFS partition, "TFS1"</summary>
|
||||
const uint HFS_MAGIC_OLD = 0x54465331;
|
||||
|
||||
public string Name => "Apple Partition Map";
|
||||
public Guid Id => new Guid("36405F8D-4F1A-07F5-209C-223D735D6D22");
|
||||
public string Name => "Apple Partition Map";
|
||||
public Guid Id => new Guid("36405F8D-4F1A-07F5-209C-223D735D6D22");
|
||||
public string Author => "Natalia Portillo";
|
||||
|
||||
public bool GetInformation(IMediaImage imagePlugin, out List<Partition> partitions, ulong sectorOffset)
|
||||
{
|
||||
|
||||
@@ -48,7 +48,9 @@ namespace DiscImageChef.Partitions
|
||||
"Apricot Portable ROM BIOS", "Apricot F1 ROM BIOS"
|
||||
};
|
||||
readonly string[] diskTypeCodes =
|
||||
{"MF1DD 70-track", "MF1DD", "MF2DD", "Winchester 5M", "Winchester 10M", "Winchester 20M"};
|
||||
{
|
||||
"MF1DD 70-track", "MF1DD", "MF2DD", "Winchester 5M", "Winchester 10M", "Winchester 20M"
|
||||
};
|
||||
readonly int[] lineModes = {256, 200};
|
||||
readonly int[] lineWidths = {80, 40};
|
||||
readonly string[] operatingSystemCodes = {"Invalid", "MS-DOS", "UCSD Pascal", "CP/M", "Concurrent CP/M"};
|
||||
@@ -56,8 +58,9 @@ namespace DiscImageChef.Partitions
|
||||
readonly string[] printDevices = {"Parallel", "Serial"};
|
||||
readonly double[] stopBits = {1, 1.5, 2};
|
||||
|
||||
public string Name => "ACT Apricot partitions";
|
||||
public Guid Id => new Guid("8CBF5864-7B5A-47A0-8CEB-199C74FA22DE");
|
||||
public string Name => "ACT Apricot partitions";
|
||||
public Guid Id => new Guid("8CBF5864-7B5A-47A0-8CEB-199C74FA22DE");
|
||||
public string Author => "Natalia Portillo";
|
||||
|
||||
public bool GetInformation(IMediaImage imagePlugin, out List<Partition> partitions, ulong sectorOffset)
|
||||
{
|
||||
@@ -270,15 +273,18 @@ namespace DiscImageChef.Partitions
|
||||
/// <summary>Operating system.</summary>
|
||||
public byte operatingSystem;
|
||||
/// <summary>Software write protection.</summary>
|
||||
[MarshalAs(UnmanagedType.U1)] public bool writeProtected;
|
||||
[MarshalAs(UnmanagedType.U1)]
|
||||
public bool writeProtected;
|
||||
/// <summary>Copy protected.</summary>
|
||||
[MarshalAs(UnmanagedType.U1)] public bool copyProtected;
|
||||
[MarshalAs(UnmanagedType.U1)]
|
||||
public bool copyProtected;
|
||||
/// <summary>Boot type.</summary>
|
||||
public byte bootType;
|
||||
/// <summary>Partitions.</summary>
|
||||
public byte partitionCount;
|
||||
/// <summary>Is hard disk?.</summary>
|
||||
[MarshalAs(UnmanagedType.U1)] public bool winchester;
|
||||
[MarshalAs(UnmanagedType.U1)]
|
||||
public bool winchester;
|
||||
/// <summary>Sector size.</summary>
|
||||
public ushort sectorSize;
|
||||
/// <summary>Sectors per track.</summary>
|
||||
@@ -331,15 +337,18 @@ namespace DiscImageChef.Partitions
|
||||
/// <summary>Major BIOS version.</summary>
|
||||
public byte biosMajorVersion;
|
||||
/// <summary>Diagnostics enabled?.</summary>
|
||||
[MarshalAs(UnmanagedType.U1)] public bool diagnosticsFlag;
|
||||
[MarshalAs(UnmanagedType.U1)]
|
||||
public bool diagnosticsFlag;
|
||||
/// <summary>Printer device.</summary>
|
||||
public byte prnDevice;
|
||||
/// <summary>Bell volume.</summary>
|
||||
public byte bellVolume;
|
||||
/// <summary>Cache enabled?.</summary>
|
||||
[MarshalAs(UnmanagedType.U1)] public bool enableCache;
|
||||
[MarshalAs(UnmanagedType.U1)]
|
||||
public bool enableCache;
|
||||
/// <summary>Graphics enabled?.</summary>
|
||||
[MarshalAs(UnmanagedType.U1)] public bool enableGraphics;
|
||||
[MarshalAs(UnmanagedType.U1)]
|
||||
public bool enableGraphics;
|
||||
/// <summary>Length in sectors of DOS.</summary>
|
||||
public byte dosLength;
|
||||
/// <summary>Length in sectors of FONT file.</summary>
|
||||
@@ -355,7 +364,8 @@ namespace DiscImageChef.Partitions
|
||||
/// <summary>Keyboard click volume.</summary>
|
||||
public byte keyboardVolume;
|
||||
/// <summary>Auto-repeat enabled?.</summary>
|
||||
[MarshalAs(UnmanagedType.U1)] public bool autorepeat;
|
||||
[MarshalAs(UnmanagedType.U1)]
|
||||
public bool autorepeat;
|
||||
/// <summary>Auto-repeat lead-in.</summary>
|
||||
public byte autorepeatLeadIn;
|
||||
/// <summary>Auto-repeat interval.</summary>
|
||||
@@ -370,7 +380,8 @@ namespace DiscImageChef.Partitions
|
||||
/// <summary>Screen line width.</summary>
|
||||
public byte lineWidth;
|
||||
/// <summary>Screen disabled?.</summary>
|
||||
[MarshalAs(UnmanagedType.U1)] public bool imageOff;
|
||||
[MarshalAs(UnmanagedType.U1)]
|
||||
public bool imageOff;
|
||||
/// <summary>Spare area for screen values expansion.</summary>
|
||||
[MarshalAs(UnmanagedType.ByValArray, SizeConst = 13)]
|
||||
public byte[] spareScreen;
|
||||
@@ -385,13 +396,16 @@ namespace DiscImageChef.Partitions
|
||||
/// <summary>Stop bits.</summary>
|
||||
public byte stopBits;
|
||||
/// <summary>Parity enabled?.</summary>
|
||||
[MarshalAs(UnmanagedType.U1)] public bool parityCheck;
|
||||
[MarshalAs(UnmanagedType.U1)]
|
||||
public bool parityCheck;
|
||||
/// <summary>Parity type.</summary>
|
||||
public byte parityType;
|
||||
/// <summary>Xon/Xoff enabled on TX.</summary>
|
||||
[MarshalAs(UnmanagedType.U1)] public bool txXonXoff;
|
||||
[MarshalAs(UnmanagedType.U1)]
|
||||
public bool txXonXoff;
|
||||
/// <summary>Xon/Xoff enabled on RX.</summary>
|
||||
[MarshalAs(UnmanagedType.U1)] public bool rxXonXoff;
|
||||
[MarshalAs(UnmanagedType.U1)]
|
||||
public bool rxXonXoff;
|
||||
/// <summary>Xon character.</summary>
|
||||
public byte xonCharacter;
|
||||
/// <summary>Xoff character.</summary>
|
||||
@@ -399,30 +413,39 @@ namespace DiscImageChef.Partitions
|
||||
/// <summary>Xon/Xoff buffer on RX.</summary>
|
||||
public ushort rxXonXoffBuffer;
|
||||
/// <summary>DTR/DSR enabled?.</summary>
|
||||
[MarshalAs(UnmanagedType.U1)] public bool dtrDsr;
|
||||
[MarshalAs(UnmanagedType.U1)]
|
||||
public bool dtrDsr;
|
||||
/// <summary>CTS/RTS enabled?.</summary>
|
||||
[MarshalAs(UnmanagedType.U1)] public bool ctsRts;
|
||||
[MarshalAs(UnmanagedType.U1)]
|
||||
public bool ctsRts;
|
||||
/// <summary>NULLs after CR.</summary>
|
||||
public byte nullsAfterCr;
|
||||
/// <summary>NULLs after 0xFF.</summary>
|
||||
public byte nullsAfterFF;
|
||||
/// <summary>Send LF after CR in serial port.</summary>
|
||||
[MarshalAs(UnmanagedType.U1)] public bool lfAfterCRSerial;
|
||||
[MarshalAs(UnmanagedType.U1)]
|
||||
public bool lfAfterCRSerial;
|
||||
/// <summary>BIOS error report in serial port.</summary>
|
||||
[MarshalAs(UnmanagedType.U1)] public bool biosErrorReportSerial;
|
||||
[MarshalAs(UnmanagedType.U1)]
|
||||
public bool biosErrorReportSerial;
|
||||
/// <summary>Spare area for serial port values expansion.</summary>
|
||||
[MarshalAs(UnmanagedType.ByValArray, SizeConst = 13)]
|
||||
public byte[] spareSerial;
|
||||
/// <summary>Send LF after CR in parallel port.</summary>
|
||||
[MarshalAs(UnmanagedType.U1)] public bool lfAfterCrParallel;
|
||||
[MarshalAs(UnmanagedType.U1)]
|
||||
public bool lfAfterCrParallel;
|
||||
/// <summary>Select line supported?.</summary>
|
||||
[MarshalAs(UnmanagedType.U1)] public bool selectLine;
|
||||
[MarshalAs(UnmanagedType.U1)]
|
||||
public bool selectLine;
|
||||
/// <summary>Paper empty supported?.</summary>
|
||||
[MarshalAs(UnmanagedType.U1)] public bool paperEmpty;
|
||||
[MarshalAs(UnmanagedType.U1)]
|
||||
public bool paperEmpty;
|
||||
/// <summary>Fault line supported?.</summary>
|
||||
[MarshalAs(UnmanagedType.U1)] public bool faultLine;
|
||||
[MarshalAs(UnmanagedType.U1)]
|
||||
public bool faultLine;
|
||||
/// <summary>BIOS error report in parallel port.</summary>
|
||||
[MarshalAs(UnmanagedType.U1)] public bool biosErrorReportParallel;
|
||||
[MarshalAs(UnmanagedType.U1)]
|
||||
public bool biosErrorReportParallel;
|
||||
/// <summary>Spare area for parallel port values expansion.</summary>
|
||||
[MarshalAs(UnmanagedType.ByValArray, SizeConst = 11)]
|
||||
public byte[] spareParallel;
|
||||
@@ -430,9 +453,11 @@ namespace DiscImageChef.Partitions
|
||||
[MarshalAs(UnmanagedType.ByValArray, SizeConst = 14)]
|
||||
public byte[] spareWinchester;
|
||||
/// <summary>Parking enabled?.</summary>
|
||||
[MarshalAs(UnmanagedType.U1)] public bool parkingEnabled;
|
||||
[MarshalAs(UnmanagedType.U1)]
|
||||
public bool parkingEnabled;
|
||||
/// <summary>Format protection?.</summary>
|
||||
[MarshalAs(UnmanagedType.U1)] public bool formatProtection;
|
||||
[MarshalAs(UnmanagedType.U1)]
|
||||
public bool formatProtection;
|
||||
/// <summary>Spare area for RAM disk values expansion.</summary>
|
||||
[MarshalAs(UnmanagedType.ByValArray, SizeConst = 16)]
|
||||
public byte[] spareRamDisk;
|
||||
|
||||
@@ -55,8 +55,9 @@ namespace DiscImageChef.Partitions
|
||||
const uint TypeMinix = 0x004D4958;
|
||||
const uint TypeMinix2 = 0x004D4E58;
|
||||
|
||||
public string Name => "Atari partitions";
|
||||
public Guid Id => new Guid("d1dd0f24-ec39-4c4d-9072-be31919a3b5e");
|
||||
public string Name => "Atari partitions";
|
||||
public Guid Id => new Guid("d1dd0f24-ec39-4c4d-9072-be31919a3b5e");
|
||||
public string Author => "Natalia Portillo";
|
||||
|
||||
public bool GetInformation(IMediaImage imagePlugin, out List<Partition> partitions, ulong sectorOffset)
|
||||
{
|
||||
|
||||
@@ -51,8 +51,9 @@ namespace DiscImageChef.Partitions
|
||||
/// <summary>Known byte offsets for BSD disklabel</summary>
|
||||
readonly uint[] labelOffsets = {0, 9, 64, 128, 516};
|
||||
|
||||
public string Name => "BSD disklabel";
|
||||
public Guid Id => new Guid("246A6D93-4F1A-1F8A-344D-50187A5513A9");
|
||||
public string Name => "BSD disklabel";
|
||||
public Guid Id => new Guid("246A6D93-4F1A-1F8A-344D-50187A5513A9");
|
||||
public string Author => "Natalia Portillo";
|
||||
|
||||
public bool GetInformation(IMediaImage imagePlugin, out List<Partition> partitions, ulong sectorOffset)
|
||||
{
|
||||
|
||||
@@ -44,8 +44,9 @@ namespace DiscImageChef.Partitions
|
||||
const int PT_MAGIC = 0x032957;
|
||||
const int PT_VALID = 1;
|
||||
|
||||
public string Name => "DEC disklabel";
|
||||
public Guid Id => new Guid("58CEC3B7-3B93-4D47-86EE-D6DADE9D444F");
|
||||
public string Name => "DEC disklabel";
|
||||
public Guid Id => new Guid("58CEC3B7-3B93-4D47-86EE-D6DADE9D444F");
|
||||
public string Author => "Natalia Portillo";
|
||||
|
||||
public bool GetInformation(IMediaImage imagePlugin, out List<Partition> partitions, ulong sectorOffset)
|
||||
{
|
||||
|
||||
@@ -42,8 +42,9 @@ namespace DiscImageChef.Partitions
|
||||
{
|
||||
const uint DISK_MAGIC64 = 0xC4464C59;
|
||||
|
||||
public string Name => "DragonFly BSD 64-bit disklabel";
|
||||
public Guid Id => new Guid("D49E41A6-D952-4760-9D94-03DAE2450C5F");
|
||||
public string Name => "DragonFly BSD 64-bit disklabel";
|
||||
public Guid Id => new Guid("D49E41A6-D952-4760-9D94-03DAE2450C5F");
|
||||
public string Author => "Natalia Portillo";
|
||||
|
||||
public bool GetInformation(IMediaImage imagePlugin, out List<Partition> partitions, ulong sectorOffset)
|
||||
{
|
||||
|
||||
@@ -46,8 +46,9 @@ namespace DiscImageChef.Partitions
|
||||
const ulong GPT_MAGIC = 0x5452415020494645;
|
||||
const uint GPT_REVISION1 = 0x00010000;
|
||||
|
||||
public string Name => "GUID Partition Table";
|
||||
public Guid Id => new Guid("CBC9D281-C1D0-44E8-9038-4D66FD2678AB");
|
||||
public string Name => "GUID Partition Table";
|
||||
public Guid Id => new Guid("CBC9D281-C1D0-44E8-9038-4D66FD2678AB");
|
||||
public string Author => "Natalia Portillo";
|
||||
|
||||
public bool GetInformation(IMediaImage imagePlugin, out List<Partition> partitions, ulong sectorOffset)
|
||||
{
|
||||
@@ -147,7 +148,7 @@ namespace DiscImageChef.Partitions
|
||||
{
|
||||
// ignored
|
||||
}
|
||||
#pragma warning restore RECS0022 // A catch clause that catches System.Exception and has an empty body
|
||||
#pragma warning restore RECS0022 // A catch clause that catches System.Exception and has an empty body
|
||||
}
|
||||
|
||||
if(entries.Count == 0) return false;
|
||||
|
||||
@@ -44,8 +44,9 @@ namespace DiscImageChef.Partitions
|
||||
{
|
||||
const uint X68K_MAGIC = 0x5836384B;
|
||||
|
||||
public string Name => "Human 68k partitions";
|
||||
public Guid Id => new Guid("246A6D93-4F1A-1F8A-344D-50187A5513A9");
|
||||
public string Name => "Human 68k partitions";
|
||||
public Guid Id => new Guid("246A6D93-4F1A-1F8A-344D-50187A5513A9");
|
||||
public string Author => "Natalia Portillo";
|
||||
|
||||
public bool GetInformation(IMediaImage imagePlugin, out List<Partition> partitions, ulong sectorOffset)
|
||||
{
|
||||
|
||||
@@ -185,8 +185,9 @@ namespace DiscImageChef.Partitions
|
||||
"VMWare VMKCORE", "Linux RAID, FreeDOS", "SpeedStor, LANStep, PS/2 IML", "Xenix bad block"
|
||||
};
|
||||
|
||||
public string Name => "Master Boot Record";
|
||||
public Guid Id => new Guid("5E8A34E8-4F1A-59E6-4BF7-7EA647063A76");
|
||||
public string Name => "Master Boot Record";
|
||||
public Guid Id => new Guid("5E8A34E8-4F1A-59E6-4BF7-7EA647063A76");
|
||||
public string Author => "Natalia Portillo";
|
||||
|
||||
public bool GetInformation(IMediaImage imagePlugin, out List<Partition> partitions, ulong sectorOffset)
|
||||
{
|
||||
@@ -569,10 +570,7 @@ namespace DiscImageChef.Partitions
|
||||
return anyMnx;
|
||||
}
|
||||
|
||||
static string DecodeMbrType(byte type)
|
||||
{
|
||||
return MbrTypes[type];
|
||||
}
|
||||
static string DecodeMbrType(byte type) => MbrTypes[type];
|
||||
|
||||
[StructLayout(LayoutKind.Sequential, Pack = 1)]
|
||||
struct MasterBootRecord
|
||||
|
||||
@@ -55,8 +55,9 @@ namespace DiscImageChef.Partitions
|
||||
/// <summary>44</summary>
|
||||
const ushort DISKTAB_ENTRY_SIZE = 0x2C;
|
||||
|
||||
public string Name => "NeXT Disklabel";
|
||||
public Guid Id => new Guid("246A6D93-4F1A-1F8A-344D-50187A5513A9");
|
||||
public string Name => "NeXT Disklabel";
|
||||
public Guid Id => new Guid("246A6D93-4F1A-1F8A-344D-50187A5513A9");
|
||||
public string Author => "Natalia Portillo";
|
||||
|
||||
public bool GetInformation(IMediaImage imagePlugin, out List<Partition> partitions, ulong sectorOffset)
|
||||
{
|
||||
@@ -177,8 +178,8 @@ namespace DiscImageChef.Partitions
|
||||
Sequence = (ulong)i,
|
||||
Name = StringHandlers.CToString(label.dl_dt.d_partitions[i].p_mountpt),
|
||||
Length = (ulong)(label.dl_dt.d_partitions[i].p_size * label.dl_dt.d_secsize / sectorSize),
|
||||
Start = (ulong)((label.dl_dt.d_partitions[i].p_base + label.dl_dt.d_front) * label.dl_dt.d_secsize /
|
||||
sectorSize),
|
||||
Start = (ulong)((label.dl_dt.d_partitions[i].p_base + label.dl_dt.d_front) *
|
||||
label.dl_dt.d_secsize / sectorSize),
|
||||
Scheme = Name
|
||||
};
|
||||
|
||||
|
||||
@@ -43,8 +43,9 @@ namespace DiscImageChef.Partitions
|
||||
{
|
||||
public class PC98 : IPartition
|
||||
{
|
||||
public string Name => "NEC PC-9800 partition table";
|
||||
public Guid Id => new Guid("27333401-C7C2-447D-961C-22AD0641A09A");
|
||||
public string Name => "NEC PC-9800 partition table";
|
||||
public Guid Id => new Guid("27333401-C7C2-447D-961C-22AD0641A09A");
|
||||
public string Author => "Natalia Portillo";
|
||||
|
||||
public bool GetInformation(IMediaImage imagePlugin, out List<Partition> partitions, ulong sectorOffset)
|
||||
{
|
||||
@@ -92,9 +93,8 @@ namespace DiscImageChef.Partitions
|
||||
|
||||
Partition part = new Partition
|
||||
{
|
||||
Start =
|
||||
CHS.ToLBA(entry.dp_scyl, entry.dp_shd, (uint)(entry.dp_ssect + 1), imagePlugin.Info.Heads,
|
||||
imagePlugin.Info.SectorsPerTrack),
|
||||
Start = CHS.ToLBA(entry.dp_scyl, entry.dp_shd, (uint)(entry.dp_ssect + 1),
|
||||
imagePlugin.Info.Heads, imagePlugin.Info.SectorsPerTrack),
|
||||
Type = DecodePC98Sid(entry.dp_sid),
|
||||
Name = StringHandlers.CToString(entry.dp_name, Encoding.GetEncoding(932)).Trim(),
|
||||
Sequence = counter,
|
||||
|
||||
@@ -45,8 +45,9 @@ namespace DiscImageChef.Partitions
|
||||
// e.g.: "part nvram 10110 10112\npart fossil 10112 3661056\n"
|
||||
public class Plan9 : IPartition
|
||||
{
|
||||
public string Name => "Plan9 partition table";
|
||||
public Guid Id => new Guid("F0BF4FFC-056E-4E7C-8B65-4EAEE250ADD9");
|
||||
public string Name => "Plan9 partition table";
|
||||
public Guid Id => new Guid("F0BF4FFC-056E-4E7C-8B65-4EAEE250ADD9");
|
||||
public string Author => "Natalia Portillo";
|
||||
|
||||
public bool GetInformation(IMediaImage imagePlugin, out List<Partition> partitions, ulong sectorOffset)
|
||||
{
|
||||
|
||||
@@ -275,8 +275,9 @@ namespace DiscImageChef.Partitions
|
||||
/// </summary>
|
||||
const uint FLAGS_NO_AUTOMOUNT = 0x00000002;
|
||||
|
||||
public string Name => "Amiga Rigid Disk Block";
|
||||
public Guid Id => new Guid("8D72ED97-1854-4170-9CE4-6E8446FD9863");
|
||||
public string Name => "Amiga Rigid Disk Block";
|
||||
public Guid Id => new Guid("8D72ED97-1854-4170-9CE4-6E8446FD9863");
|
||||
public string Author => "Natalia Portillo";
|
||||
|
||||
public bool GetInformation(IMediaImage imagePlugin, out List<Partition> partitions, ulong sectorOffset)
|
||||
{
|
||||
@@ -758,23 +759,34 @@ namespace DiscImageChef.Partitions
|
||||
ulong sequence = 0;
|
||||
foreach(Partition entry in partitionEntries.Select(rdbEntry => new Partition
|
||||
{
|
||||
Description = AmigaDosTypeToDescriptionString(rdbEntry.DosEnvVec.DosType),
|
||||
Name = rdbEntry.DriveName,
|
||||
Sequence = sequence,
|
||||
Description =
|
||||
AmigaDosTypeToDescriptionString(rdbEntry
|
||||
.DosEnvVec
|
||||
.DosType),
|
||||
Name = rdbEntry.DriveName,
|
||||
Sequence = sequence,
|
||||
Length =
|
||||
(rdbEntry.DosEnvVec.HighCylinder + 1 - rdbEntry.DosEnvVec.LowCylinder) *
|
||||
rdbEntry.DosEnvVec.Surfaces * rdbEntry.DosEnvVec.Bpt,
|
||||
(rdbEntry.DosEnvVec.HighCylinder + 1 -
|
||||
rdbEntry.DosEnvVec.LowCylinder) *
|
||||
rdbEntry.DosEnvVec.Surfaces *
|
||||
rdbEntry.DosEnvVec.Bpt,
|
||||
Start =
|
||||
rdbEntry.DosEnvVec.LowCylinder * rdbEntry.DosEnvVec.Surfaces * rdbEntry.DosEnvVec.Bpt +
|
||||
sectorOffset,
|
||||
Type = AmigaDosTypeToString(rdbEntry.DosEnvVec.DosType),
|
||||
rdbEntry.DosEnvVec.LowCylinder *
|
||||
rdbEntry.DosEnvVec.Surfaces *
|
||||
rdbEntry.DosEnvVec.Bpt + sectorOffset,
|
||||
Type =
|
||||
AmigaDosTypeToString(rdbEntry.DosEnvVec
|
||||
.DosType),
|
||||
Scheme = Name,
|
||||
Offset =
|
||||
(rdbEntry.DosEnvVec.LowCylinder * rdbEntry.DosEnvVec.Surfaces * rdbEntry.DosEnvVec.Bpt +
|
||||
sectorOffset) * rdb.BlockSize,
|
||||
Size = (rdbEntry.DosEnvVec.HighCylinder + 1 - rdbEntry.DosEnvVec.LowCylinder) *
|
||||
rdbEntry.DosEnvVec.Surfaces * rdbEntry.DosEnvVec.Bpt *
|
||||
rdb.BlockSize
|
||||
(rdbEntry.DosEnvVec.LowCylinder *
|
||||
rdbEntry.DosEnvVec.Surfaces *
|
||||
rdbEntry.DosEnvVec.Bpt + sectorOffset) *
|
||||
rdb.BlockSize,
|
||||
Size = (rdbEntry.DosEnvVec.HighCylinder + 1 -
|
||||
rdbEntry.DosEnvVec.LowCylinder) *
|
||||
rdbEntry.DosEnvVec.Surfaces *
|
||||
rdbEntry.DosEnvVec.Bpt * rdb.BlockSize
|
||||
}))
|
||||
{
|
||||
partitions.Add(entry);
|
||||
|
||||
@@ -44,8 +44,9 @@ namespace DiscImageChef.Partitions
|
||||
const ushort KARMA_MAGIC = 0xAB56;
|
||||
const byte ENTRY_MAGIC = 0x4D;
|
||||
|
||||
public string Name => "Rio Karma partitioning";
|
||||
public Guid Id => new Guid("246A6D93-4F1A-1F8A-344D-50187A5513A9");
|
||||
public string Name => "Rio Karma partitioning";
|
||||
public Guid Id => new Guid("246A6D93-4F1A-1F8A-344D-50187A5513A9");
|
||||
public string Author => "Natalia Portillo";
|
||||
|
||||
public bool GetInformation(IMediaImage imagePlugin, out List<Partition> partitions, ulong sectorOffset)
|
||||
{
|
||||
|
||||
@@ -48,8 +48,9 @@ namespace DiscImageChef.Partitions
|
||||
{
|
||||
const int SGI_MAGIC = 0x0BE5A941;
|
||||
|
||||
public string Name => "SGI Disk Volume Header";
|
||||
public Guid Id => new Guid("AEF5AB45-4880-4CE8-8735-F0A402E2E5F2");
|
||||
public string Name => "SGI Disk Volume Header";
|
||||
public Guid Id => new Guid("AEF5AB45-4880-4CE8-8735-F0A402E2E5F2");
|
||||
public string Author => "Natalia Portillo";
|
||||
|
||||
public bool GetInformation(IMediaImage imagePlugin, out List<Partition> partitions, ulong sectorOffset)
|
||||
{
|
||||
@@ -116,14 +117,12 @@ namespace DiscImageChef.Partitions
|
||||
|
||||
Partition part = new Partition
|
||||
{
|
||||
Start = dvh.partitions[i].first_block * dvh.device_params.dp_secbytes /
|
||||
imagePlugin.Info.SectorSize,
|
||||
Offset = dvh.partitions[i].first_block *
|
||||
dvh.device_params.dp_secbytes,
|
||||
Start =
|
||||
dvh.partitions[i].first_block * dvh.device_params.dp_secbytes / imagePlugin.Info.SectorSize,
|
||||
Offset = dvh.partitions[i].first_block * dvh.device_params.dp_secbytes,
|
||||
Length = dvh.partitions[i].num_blocks * dvh.device_params.dp_secbytes /
|
||||
imagePlugin.Info.SectorSize,
|
||||
Size = dvh.partitions[i].num_blocks *
|
||||
dvh.device_params.dp_secbytes,
|
||||
imagePlugin.Info.SectorSize,
|
||||
Size = dvh.partitions[i].num_blocks * dvh.device_params.dp_secbytes,
|
||||
Type = TypeToString(dvh.partitions[i].type),
|
||||
Sequence = counter,
|
||||
Scheme = Name
|
||||
|
||||
@@ -70,8 +70,9 @@ namespace DiscImageChef.Partitions
|
||||
const int LEN_DKL_PAD16 = DK_LABEL_SIZE - (456 + // sizeof(dk_vtoc16)
|
||||
4 * 4 + 12 * 2 + 2 * 2);
|
||||
|
||||
public string Name => "Sun Disklabel";
|
||||
public Guid Id => new Guid("50F35CC4-8375-4445-8DCB-1BA550C931A3");
|
||||
public string Name => "Sun Disklabel";
|
||||
public Guid Id => new Guid("50F35CC4-8375-4445-8DCB-1BA550C931A3");
|
||||
public string Author => "Natalia Portillo";
|
||||
|
||||
public bool GetInformation(IMediaImage imagePlugin, out List<Partition> partitions, ulong sectorOffset)
|
||||
{
|
||||
@@ -163,7 +164,8 @@ namespace DiscImageChef.Partitions
|
||||
Length = (ulong)(dkl.dkl_map[i].dkl_nblk * DK_LABEL_SIZE / imagePlugin.Info.SectorSize),
|
||||
Sequence = (ulong)i,
|
||||
Offset =
|
||||
((ulong)dkl.dkl_map[i].dkl_cylno * sectorsPerCylinder + sectorOffset) * DK_LABEL_SIZE,
|
||||
((ulong)dkl.dkl_map[i].dkl_cylno * sectorsPerCylinder + sectorOffset) *
|
||||
DK_LABEL_SIZE,
|
||||
Start = ((ulong)dkl.dkl_map[i].dkl_cylno * sectorsPerCylinder + sectorOffset) *
|
||||
DK_LABEL_SIZE / imagePlugin.Info.SectorSize,
|
||||
Type = "SunOS partition",
|
||||
@@ -230,7 +232,8 @@ namespace DiscImageChef.Partitions
|
||||
(ulong)(dkl8.dkl_map[i].dkl_nblk * DK_LABEL_SIZE / imagePlugin.Info.SectorSize),
|
||||
Sequence = (ulong)i,
|
||||
Offset =
|
||||
((ulong)dkl8.dkl_map[i].dkl_cylno * sectorsPerCylinder + sectorOffset) * DK_LABEL_SIZE,
|
||||
((ulong)dkl8.dkl_map[i].dkl_cylno * sectorsPerCylinder + sectorOffset) *
|
||||
DK_LABEL_SIZE,
|
||||
Start = ((ulong)dkl8.dkl_map[i].dkl_cylno * sectorsPerCylinder + sectorOffset) *
|
||||
DK_LABEL_SIZE / imagePlugin.Info.SectorSize,
|
||||
Type = SunIdToString(dkl8.dkl_vtoc.v_part[i].p_tag),
|
||||
@@ -298,7 +301,8 @@ namespace DiscImageChef.Partitions
|
||||
imagePlugin.Info.SectorSize),
|
||||
Sequence = (ulong)i,
|
||||
Offset =
|
||||
((ulong)dkl16.dkl_vtoc.v_part[i].p_start + sectorOffset) * dkl16.dkl_vtoc.v_sectorsz,
|
||||
((ulong)dkl16.dkl_vtoc.v_part[i].p_start + sectorOffset) *
|
||||
dkl16.dkl_vtoc.v_sectorsz,
|
||||
Start = ((ulong)dkl16.dkl_vtoc.v_part[i].p_start + sectorOffset) *
|
||||
dkl16.dkl_vtoc.v_sectorsz / imagePlugin.Info.SectorSize,
|
||||
Type = SunIdToString(dkl16.dkl_vtoc.v_part[i].p_tag),
|
||||
|
||||
@@ -1369,8 +1369,9 @@ namespace DiscImageChef.Partitions
|
||||
}
|
||||
};
|
||||
|
||||
public string Name => "UNIX hardwired";
|
||||
public Guid Id => new Guid("9ED7E30B-53BF-4619-87A0-5D2002155617");
|
||||
public string Name => "UNIX hardwired";
|
||||
public Guid Id => new Guid("9ED7E30B-53BF-4619-87A0-5D2002155617");
|
||||
public string Author => "Natalia Portillo";
|
||||
|
||||
public bool GetInformation(IMediaImage imagePlugin, out List<Partition> partitions, ulong sectorOffset)
|
||||
{
|
||||
|
||||
@@ -49,8 +49,9 @@ namespace DiscImageChef.Partitions
|
||||
const int V_NUMPAR = 16;
|
||||
const uint XPDVERS = 3; /* 1st version of extended pdinfo */
|
||||
|
||||
public string Name => "UNIX VTOC";
|
||||
public Guid Id => new Guid("6D35A66F-8D77-426F-A562-D88F6A1F1702");
|
||||
public string Name => "UNIX VTOC";
|
||||
public Guid Id => new Guid("6D35A66F-8D77-426F-A562-D88F6A1F1702");
|
||||
public string Author => "Natalia Portillo";
|
||||
|
||||
public bool GetInformation(IMediaImage imagePlugin, out List<Partition> partitions, ulong sectorOffset)
|
||||
{
|
||||
|
||||
@@ -47,8 +47,9 @@ namespace DiscImageChef.Partitions
|
||||
// Can't find this in any documentation but everything is aligned to this offset (in sectors)
|
||||
const uint XENIX_OFFSET = 977;
|
||||
|
||||
public string Name => "XENIX";
|
||||
public Guid Id => new Guid("53BE01DE-E68B-469F-A17F-EC2E4BD61CD9");
|
||||
public string Name => "XENIX";
|
||||
public Guid Id => new Guid("53BE01DE-E68B-469F-A17F-EC2E4BD61CD9");
|
||||
public string Author => "Natalia Portillo";
|
||||
|
||||
public bool GetInformation(IMediaImage imagePlugin, out List<CommonTypes.Partition> partitions,
|
||||
ulong sectorOffset)
|
||||
|
||||
@@ -60,8 +60,9 @@ namespace DiscImageChef.Partitions
|
||||
|
||||
const uint XBOX360_DEVKIT_MAGIC = 0x00020000;
|
||||
|
||||
public string Name => "Xbox partitioning";
|
||||
public Guid Id => new Guid("E3F6FB91-D358-4F22-A550-81E92D50EB78");
|
||||
public string Name => "Xbox partitioning";
|
||||
public Guid Id => new Guid("E3F6FB91-D358-4F22-A550-81E92D50EB78");
|
||||
public string Author => "Natalia Portillo";
|
||||
|
||||
public bool GetInformation(IMediaImage imagePlugin, out List<Partition> partitions, ulong sectorOffset)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user