mirror of
https://github.com/aaru-dps/Aaru.git
synced 2025-12-16 19:24:25 +00:00
* FileSystemIDandChk/DateHandlers.cs:
Lisa epoch is 1901 not 1904 * FileSystemIDandChk/Plugins/LisaFS.cs: Typos corrected, now works perfectly git-svn-id: svn://claunia.com/FileSystemIDandChk@36 17725271-3d32-4980-a8cb-9ff532f270ba
This commit is contained in:
@@ -45,7 +45,7 @@ namespace FileSystemIDandChk.Plugins
|
||||
for (int i = 0; i < 100; i++)
|
||||
{
|
||||
byte[] tag = imagePlugin.ReadSectorTag((ulong)i, SectorTagType.AppleSectorTag);
|
||||
UInt16 fileid = BigEndianBitConverter.ToUInt16(tag, 0x02);
|
||||
UInt16 fileid = BigEndianBitConverter.ToUInt16(tag, 0x04);
|
||||
|
||||
if (MainClass.isDebug)
|
||||
Console.WriteLine("DEBUG (LisaFS plugin): Sector {0}, file ID 0x{1:X4}", i, fileid);
|
||||
@@ -78,7 +78,7 @@ namespace FileSystemIDandChk.Plugins
|
||||
if (mddf.mddf_block != i)
|
||||
return false;
|
||||
|
||||
if (mddf.vol_size < imagePlugin.GetSectors())
|
||||
if (mddf.vol_size > imagePlugin.GetSectors())
|
||||
return false;
|
||||
|
||||
if (mddf.vol_size - 1 != mddf.volsize_minus_one)
|
||||
@@ -128,7 +128,7 @@ namespace FileSystemIDandChk.Plugins
|
||||
for (int i = 0; i < 100; i++)
|
||||
{
|
||||
byte[] tag = imagePlugin.ReadSectorTag((ulong)i, SectorTagType.AppleSectorTag);
|
||||
UInt16 fileid = BigEndianBitConverter.ToUInt16(tag, 0x02);
|
||||
UInt16 fileid = BigEndianBitConverter.ToUInt16(tag, 0x04);
|
||||
|
||||
if (MainClass.isDebug)
|
||||
Console.WriteLine("DEBUG (LisaFS plugin): Sector {0}, file ID 0x{1:X4}", i, fileid);
|
||||
@@ -267,7 +267,7 @@ namespace FileSystemIDandChk.Plugins
|
||||
if (mddf.mddf_block != i)
|
||||
return;
|
||||
|
||||
if (mddf.vol_size < imagePlugin.GetSectors())
|
||||
if (mddf.vol_size > imagePlugin.GetSectors())
|
||||
return;
|
||||
|
||||
if (mddf.vol_size - 1 != mddf.volsize_minus_one)
|
||||
|
||||
Reference in New Issue
Block a user