mirror of
https://github.com/aaru-dps/Aaru.git
synced 2025-12-16 19:24:25 +00:00
Cache FAT's EA directory entry.
This commit is contained in:
@@ -48,6 +48,7 @@ namespace DiscImageChef.Filesystems.FAT
|
|||||||
CultureInfo cultureInfo;
|
CultureInfo cultureInfo;
|
||||||
bool debug;
|
bool debug;
|
||||||
Dictionary<string, Dictionary<string, DirectoryEntry>> directoryCache;
|
Dictionary<string, Dictionary<string, DirectoryEntry>> directoryCache;
|
||||||
|
DirectoryEntry eaDirEntry;
|
||||||
bool fat12;
|
bool fat12;
|
||||||
bool fat16;
|
bool fat16;
|
||||||
bool fat32;
|
bool fat32;
|
||||||
|
|||||||
@@ -514,6 +514,17 @@ namespace DiscImageChef.Filesystems.FAT
|
|||||||
if(extension != "") filename = name + "." + extension;
|
if(extension != "") filename = name + "." + extension;
|
||||||
else filename = name;
|
else filename = name;
|
||||||
|
|
||||||
|
if(!fat32 && filename == "EA DATA. SF")
|
||||||
|
{
|
||||||
|
eaDirEntry = entry;
|
||||||
|
lastLfnName = null;
|
||||||
|
lastLfnChecksum = 0;
|
||||||
|
|
||||||
|
if(debug) rootDirectoryCache[filename] = entry;
|
||||||
|
|
||||||
|
continue;
|
||||||
|
}
|
||||||
|
|
||||||
rootDirectoryCache[filename] = entry;
|
rootDirectoryCache[filename] = entry;
|
||||||
lastLfnName = null;
|
lastLfnName = null;
|
||||||
lastLfnChecksum = 0;
|
lastLfnChecksum = 0;
|
||||||
|
|||||||
Reference in New Issue
Block a user