mirror of
https://github.com/aaru-dps/Aaru.git
synced 2025-12-16 19:24:25 +00:00
* DiscImageChef/Main.cs:
* DiscImageChef/Options.cs: * DiscImageChef/DiscImageChef.csproj: * DiscImageChef/Commands/ExtractFiles.cs: Added command to extract all files from a filesystem. * DiscImageChef.Filesystems/LisaFS/Consts.cs: Corrected comments. Added ftype known values. * DiscImageChef.Filesystems/LisaFS/Dir.cs: Changed field name. * DiscImageChef.Filesystems/LisaFS/Extent.cs: * DiscImageChef.Filesystems/LisaFS/Structs.cs: Reverse engineered new fields from ExtentsFile * DiscImageChef.Filesystems/LisaFS/File.cs: Added support for reading tags. Added flags and ftype fields from ExtentsFile. * DiscImageChef.Filesystems/LisaFS/Xattr.cs: Changed how serial number is returned. Allow to get tags in debug mode as an xattr. * DiscImageChef.Filesystems/Structs.cs: Added PIPE attribute.
This commit is contained in:
@@ -88,27 +88,43 @@ namespace DiscImageChef.Filesystems.LisaFS
|
||||
file.filenameLen = sector[0];
|
||||
file.filename = new byte[file.filenameLen];
|
||||
Array.Copy(sector, 0x01, file.filename, 0, file.filenameLen);
|
||||
file.timestamp = BigEndianBitConverter.ToUInt32(sector, 0x20);
|
||||
file.unknown1 = new byte[3];
|
||||
Array.Copy(sector, 0x24, file.unknown1, 0, 3);
|
||||
file.serial = new byte[3];
|
||||
Array.Copy(sector, 0x27, file.serial, 0, 3);
|
||||
file.unknown2 = BigEndianBitConverter.ToUInt32(sector, 0x2A);
|
||||
file.unknown1 = BigEndianBitConverter.ToUInt16(sector, 0x20);
|
||||
file.file_uid = BigEndianBitConverter.ToUInt64(sector, 0x22);
|
||||
file.unknown2 = sector[0x2A];
|
||||
file.etype = sector[0x2B];
|
||||
file.ftype = (FileType)sector[0x2C];
|
||||
file.unknown3 = sector[0x2D];
|
||||
file.dtc = BigEndianBitConverter.ToUInt32(sector, 0x2E);
|
||||
file.dta = BigEndianBitConverter.ToUInt32(sector, 0x32);
|
||||
file.dtm = BigEndianBitConverter.ToUInt32(sector, 0x36);
|
||||
file.dtb = BigEndianBitConverter.ToUInt32(sector, 0x3A);
|
||||
file.dts = BigEndianBitConverter.ToUInt32(sector, 0x3E);
|
||||
file.unknown3 = new byte[32];
|
||||
Array.Copy(sector, 0x42, file.unknown3, 0, 32);
|
||||
file.flags = sector[0x62];
|
||||
file.serial = BigEndianBitConverter.ToUInt32(sector, 0x42);
|
||||
file.unknown4 = sector[0x46];
|
||||
file.locked = sector[0x47];
|
||||
file.protect = sector[0x48];
|
||||
file.master = sector[0x49];
|
||||
file.scavenged = sector[0x4A];
|
||||
file.closed = sector[0x4B];
|
||||
file.open = sector[0x4C];
|
||||
file.unknown5 = new byte[11];
|
||||
Array.Copy(sector, 0x4D, file.unknown5, 0, 11);
|
||||
file.release = BigEndianBitConverter.ToUInt16(sector, 0x58);
|
||||
file.build = BigEndianBitConverter.ToUInt16(sector, 0x5A);
|
||||
file.compatibility = BigEndianBitConverter.ToUInt16(sector, 0x5C);
|
||||
file.revision = BigEndianBitConverter.ToUInt16(sector, 0x5E);
|
||||
file.unknown6 = BigEndianBitConverter.ToUInt16(sector, 0x60);
|
||||
file.password_valid = sector[0x62];
|
||||
file.password = new byte[8];
|
||||
Array.Copy(sector, 0x63, file.password, 0, 8);
|
||||
file.unknown4 = new byte[21];
|
||||
Array.Copy(sector, 0x6B, file.unknown4, 0, 21);
|
||||
file.unknown7 = new byte[3];
|
||||
Array.Copy(sector, 0x6B, file.unknown7, 0, 3);
|
||||
file.overhead = BigEndianBitConverter.ToUInt16(sector, 0x6E);
|
||||
file.unknown8 = new byte[16];
|
||||
Array.Copy(sector, 0x70, file.unknown8, 0, 16);
|
||||
file.length = BigEndianBitConverter.ToInt32(sector, 0x80);
|
||||
file.unknown5 = BigEndianBitConverter.ToInt32(sector, 0x84);
|
||||
file.unknown6 = BigEndianBitConverter.ToInt16(sector, 0x17E);
|
||||
file.unknown9 = BigEndianBitConverter.ToInt32(sector, 0x84);
|
||||
file.unknown10 = BigEndianBitConverter.ToInt16(sector, 0x17E);
|
||||
file.LisaInfo = new byte[128];
|
||||
Array.Copy(sector, 0x180, file.LisaInfo, 0, 128);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user