Added support for deteting XA extensions in ISO9660.

This commit is contained in:
2017-10-09 02:26:45 +01:00
parent e491998062
commit 20e177e1e1
3 changed files with 73 additions and 4 deletions

View File

@@ -39,6 +39,7 @@ namespace DiscImageChef.Filesystems.ISO9660
readonly string HighSierraMagic = "CDROM";
const ushort ElToritoMagic = 0xAA55;
const int ElToritoEntrySize = 32;
const ushort XaMagic = 0x5841; // "XA"
[Flags]
enum FileFlags : byte
@@ -64,6 +65,22 @@ namespace DiscImageChef.Filesystems.ISO9660
OtherExecute = 0x4000,
}
[Flags]
enum XaAttributes : ushort
{
SystemRead = 0x01,
SystemExecute = 0x04,
OwnerRead = 0x10,
OwnerExecute = 0x40,
GroupRead = 0x100,
GroupExecute = 0x400,
Mode2Form1 = 0x800,
Mode2Form2 = 0x1000,
Interleaved = 0x2000,
Cdda = 0x4000,
Directory = 0x8000,
}
enum RecordFormat : byte
{
Unspecified = 0,