mirror of
https://github.com/aaru-dps/Aaru.git
synced 2025-12-16 19:24:25 +00:00
Implement support for EAs in FAT32.
This commit is contained in:
@@ -855,7 +855,7 @@ namespace DiscImageChef.Filesystems.FAT
|
||||
[MarshalAs(UnmanagedType.ByValArray, SizeConst = 3)]
|
||||
public readonly byte[] extension;
|
||||
public readonly FatAttributes attributes;
|
||||
public readonly byte caseinfo;
|
||||
public readonly CaseInfo caseinfo;
|
||||
public readonly byte ctime_ms;
|
||||
public readonly ushort ctime;
|
||||
public readonly ushort cdate;
|
||||
@@ -894,5 +894,22 @@ namespace DiscImageChef.Filesystems.FAT
|
||||
public readonly uint unknown;
|
||||
public readonly ushort zero;
|
||||
}
|
||||
|
||||
class CompleteDirectoryEntry
|
||||
{
|
||||
public DirectoryEntry Dirent;
|
||||
public DirectoryEntry Fat32Ea;
|
||||
public string Lfn;
|
||||
public string Longname;
|
||||
public string Shortname;
|
||||
|
||||
public override string ToString()
|
||||
{
|
||||
// This ensures LFN takes preference when eCS is in use
|
||||
if(!string.IsNullOrEmpty(Lfn)) return Lfn;
|
||||
|
||||
return !string.IsNullOrEmpty(Longname) ? Longname : Shortname;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user