mirror of
https://github.com/aaru-dps/Aaru.Server.git
synced 2025-12-16 19:24:27 +00:00
* DiscImageChef.Filesystems/LisaFS/LisaFS.cs:
Corrected parametrized constructor. * DiscImageChef.Filesystems/LisaFS/Dir.cs: Mimic Pascal Workshop behaviour, ignore catalog entries without an ExtentsFile.
This commit is contained in:
@@ -157,12 +157,17 @@ namespace DiscImageChef.Filesystems.LisaFS
|
|||||||
entry.wasted = BigEndianBitConverter.ToInt32(buf, offset + 0x34);
|
entry.wasted = BigEndianBitConverter.ToInt32(buf, offset + 0x34);
|
||||||
entry.tail = new byte[8];
|
entry.tail = new byte[8];
|
||||||
Array.Copy(buf, offset + 0x38, entry.tail, 0, 8);
|
Array.Copy(buf, offset + 0x38, entry.tail, 0, 8);
|
||||||
catalog.Add(entry);
|
|
||||||
|
|
||||||
if(fileSizeCache.ContainsKey(entry.fileID))
|
// This is as Pascal Workshop does, if there is no extents file it simply ignores it.
|
||||||
fileSizeCache.Remove(entry.fileID);
|
ExtentFile ext;
|
||||||
|
if(ReadExtentsFile(entry.fileID, out ext) == Errno.NoError)
|
||||||
fileSizeCache.Add(entry.fileID, entry.length);
|
{
|
||||||
|
if(!fileSizeCache.ContainsKey(entry.fileID))
|
||||||
|
{
|
||||||
|
catalog.Add(entry);
|
||||||
|
fileSizeCache.Add(entry.fileID, entry.length);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
offset += 64;
|
offset += 64;
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -71,6 +71,8 @@ namespace DiscImageChef.Filesystems.LisaFS
|
|||||||
public LisaFS(ImagePlugins.ImagePlugin imagePlugin, ulong partitionStart, ulong partitionEnd)
|
public LisaFS(ImagePlugins.ImagePlugin imagePlugin, ulong partitionStart, ulong partitionEnd)
|
||||||
{
|
{
|
||||||
device = imagePlugin;
|
device = imagePlugin;
|
||||||
|
Name = "Apple Lisa File System";
|
||||||
|
PluginUUID = new Guid("7E6034D1-D823-4248-A54D-239742B28391");
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user