Fix TODOs and code cleanup.

This commit is contained in:
2019-07-31 19:53:47 +01:00
parent 62e14f275e
commit c51847b734
11 changed files with 143 additions and 150 deletions

View File

@@ -199,7 +199,7 @@ namespace DiscImageChef.Filesystems.ISO9660
string fsFormat;
byte[] pathTableData;
uint pathTableSizeInSectors = 0;
uint pathTableSizeInSectors;
uint pathTableMsbLocation;
uint pathTableLsbLocation = 0; // Initialize to 0 as ignored in CD-i
@@ -253,8 +253,8 @@ namespace DiscImageChef.Filesystems.ISO9660
if(jolietvd is null && this.@namespace == Namespace.Joliet) this.@namespace = Namespace.Normal;
uint rootLocation = 0;
uint rootSize = 0;
uint rootLocation;
uint rootSize;
byte rootXattrLength = 0;
if(!cdi)
@@ -341,11 +341,10 @@ namespace DiscImageChef.Filesystems.ISO9660
rootDirectoryCache.Add("$PATH_TABLE.LSB",
new DecodedDirectoryEntry
{
Extents =
new List<(uint extent, uint size)>
{
(rootLocation, (uint)pathTableData.Length)
},
Extents = new List<(uint extent, uint size)>
{
(pathTableLsbLocation, (uint)pathTableData.Length)
},
Filename = "$PATH_TABLE.LSB",
Size = (uint)pathTableData.Length,
Timestamp = decodedVd.CreationTime
@@ -357,7 +356,7 @@ namespace DiscImageChef.Filesystems.ISO9660
Extents =
new List<(uint extent, uint size)>
{
(rootLocation, (uint)pathTableData.Length)
(pathTableMsbLocation, (uint)pathTableData.Length)
},
Filename = "$PATH_TABLE.MSB",
Size = (uint)pathTableData.Length,