Dispose reader streams for file tables once finsihed
This commit is contained in:
parent
ef1550facc
commit
376657825c
Binary file not shown.
Binary file not shown.
@ -95,6 +95,9 @@ namespace Switch_Toolbox.Library
|
|||||||
|
|
||||||
NameTables.Add(Name, Size);
|
NameTables.Add(Name, Size);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
reader.Close();
|
||||||
|
reader.Dispose();
|
||||||
}
|
}
|
||||||
|
|
||||||
public void Write(FileWriter writer)
|
public void Write(FileWriter writer)
|
||||||
|
@ -47,6 +47,9 @@ namespace Switch_Toolbox.Library
|
|||||||
uint.TryParse(Size, out sizeNum);
|
uint.TryParse(Size, out sizeNum);
|
||||||
FileSizes.Add(FileName, sizeNum);
|
FileSizes.Add(FileName, sizeNum);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
reader.Close();
|
||||||
|
reader.Dispose();
|
||||||
}
|
}
|
||||||
|
|
||||||
public void ReadDecompressedTable(FileReader reader)
|
public void ReadDecompressedTable(FileReader reader)
|
||||||
@ -72,6 +75,9 @@ namespace Switch_Toolbox.Library
|
|||||||
|
|
||||||
DecompressedFileSizes.Add(entry.FilePath, entry);
|
DecompressedFileSizes.Add(entry.FilePath, entry);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
reader.Close();
|
||||||
|
reader.Dispose();
|
||||||
}
|
}
|
||||||
|
|
||||||
public void WriteCompressedTable(FileWriter writer)
|
public void WriteCompressedTable(FileWriter writer)
|
||||||
|
@ -162,8 +162,8 @@ namespace Switch_Toolbox.Library.IO
|
|||||||
}
|
}
|
||||||
}*/
|
}*/
|
||||||
|
|
||||||
CompressedFileTbl.WriteCompressedTable(new FileWriter($"{Runtime.TpGamePath}/FileSizeList.txt"));
|
CompressedFileTbl.WriteCompressedTable(new FileWriter($"{Runtime.TpGamePath}/FileSizeListTEST.txt"));
|
||||||
DecompressedFileTbl.WriteDecompressedTable(new FileWriter($"{Runtime.TpGamePath}/DecompressedSizeList.txt"));
|
DecompressedFileTbl.WriteDecompressedTable(new FileWriter($"{Runtime.TpGamePath}/DecompressedSizeListTEST.txt"));
|
||||||
}
|
}
|
||||||
|
|
||||||
return FileLog;
|
return FileLog;
|
||||||
|
Loading…
Reference in New Issue
Block a user