From 6c50cccacd4e8f0ca13faaea2f6fd2891620eab4 Mon Sep 17 00:00:00 2001 From: Natalia Portillo Date: Fri, 22 Jul 2016 23:03:27 +0100 Subject: [PATCH] Corrected directory entry. --- DiscImageChef.Filesystems/LisaFS/Dir.cs | 4 ++-- DiscImageChef.Filesystems/LisaFS/Structs.cs | 6 +++--- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/DiscImageChef.Filesystems/LisaFS/Dir.cs b/DiscImageChef.Filesystems/LisaFS/Dir.cs index f4654212..10aede8b 100644 --- a/DiscImageChef.Filesystems/LisaFS/Dir.cs +++ b/DiscImageChef.Filesystems/LisaFS/Dir.cs @@ -153,8 +153,8 @@ namespace DiscImageChef.Filesystems.LisaFS entry.fileID = BigEndianBitConverter.ToInt16(buf, offset + 0x26); entry.dtc = BigEndianBitConverter.ToUInt32(buf, offset + 0x28); entry.dtm = BigEndianBitConverter.ToUInt32(buf, offset + 0x2C); - entry.wasted = BigEndianBitConverter.ToInt32(buf, offset + 0x30); - entry.length = BigEndianBitConverter.ToInt32(buf, offset + 0x34); + entry.length = BigEndianBitConverter.ToInt32(buf, offset + 0x30); + entry.wasted = BigEndianBitConverter.ToInt32(buf, offset + 0x34); entry.tail = new byte[8]; Array.Copy(buf, offset + 0x38, entry.tail, 0, 8); catalog.Add(entry); diff --git a/DiscImageChef.Filesystems/LisaFS/Structs.cs b/DiscImageChef.Filesystems/LisaFS/Structs.cs index a29914ce..e0252b48 100644 --- a/DiscImageChef.Filesystems/LisaFS/Structs.cs +++ b/DiscImageChef.Filesystems/LisaFS/Structs.cs @@ -247,10 +247,10 @@ namespace DiscImageChef.Filesystems.LisaFS public UInt32 dtc; /// 0x2C, last modification date public UInt32 dtm; - /// 0x30, file length in bytes, including wasted block space - public Int32 wasted; - /// 0x34, file length in bytes + /// 0x30, file length in bytes public Int32 length; + /// 0x34, file length in bytes, including wasted block space + public Int32 wasted; /// 0x38, unknown public byte[] tail; }