Add fields for decoded Apple extensions to ISO9660 directory record.

This commit is contained in:
2019-07-28 05:20:18 +01:00
parent b491dfb499
commit b1210868a8

View File

@@ -57,17 +57,56 @@ namespace DiscImageChef.Filesystems.ISO9660
class DecodedDirectoryEntry
{
public byte? AppleDosType;
public byte[] AppleIcon;
public ushort? AppleProDosType;
public DecodedDirectoryEntry AssociatedFile;
public uint Extent;
public string Filename;
public byte FileUnitSize;
public FinderInfo FinderInfo;
public FileFlags Flags;
public byte Interleave;
public DecodedDirectoryEntry ResourceFork;
public uint Size;
public DateTime? Timestamp;
public ushort VolumeSequenceNumber;
public override string ToString() => Filename;
}
[Flags]
enum FinderFlags : ushort
{
kIsOnDesk = 0x0001,
kColor = 0x000E,
kRequireSwitchLaunch = 0x0020,
kIsShared = 0x0040,
kHasNoINITs = 0x0080,
kHasBeenInited = 0x0100,
kHasCustomIcon = 0x0400,
kLetter = 0x0200,
kChanged = 0x0200,
kIsStationery = 0x0800,
kNameLocked = 0x1000,
kHasBundle = 0x2000,
kIsInvisible = 0x4000,
kIsAlias = 0x8000
}
struct Point
{
public short x;
public short y;
}
class FinderInfo
{
public uint fdCreator;
public FinderFlags fdFlags;
public short fdFldr;
public Point fdLocation;
public uint fdType;
}
}
}