mirror of
https://github.com/KillzXGaming/Switch-Toolbox
synced 2024-11-22 20:43:09 +00:00
Dispose reader streams for file tables once finsihed
This commit is contained in:
parent
ef1550facc
commit
376657825c
5 changed files with 11 additions and 2 deletions
Binary file not shown.
Binary file not shown.
|
@ -95,6 +95,9 @@ namespace Switch_Toolbox.Library
|
|||
|
||||
NameTables.Add(Name, Size);
|
||||
}
|
||||
|
||||
reader.Close();
|
||||
reader.Dispose();
|
||||
}
|
||||
|
||||
public void Write(FileWriter writer)
|
||||
|
|
|
@ -47,6 +47,9 @@ namespace Switch_Toolbox.Library
|
|||
uint.TryParse(Size, out sizeNum);
|
||||
FileSizes.Add(FileName, sizeNum);
|
||||
}
|
||||
|
||||
reader.Close();
|
||||
reader.Dispose();
|
||||
}
|
||||
|
||||
public void ReadDecompressedTable(FileReader reader)
|
||||
|
@ -72,6 +75,9 @@ namespace Switch_Toolbox.Library
|
|||
|
||||
DecompressedFileSizes.Add(entry.FilePath, entry);
|
||||
}
|
||||
|
||||
reader.Close();
|
||||
reader.Dispose();
|
||||
}
|
||||
|
||||
public void WriteCompressedTable(FileWriter writer)
|
||||
|
|
|
@ -162,8 +162,8 @@ namespace Switch_Toolbox.Library.IO
|
|||
}
|
||||
}*/
|
||||
|
||||
CompressedFileTbl.WriteCompressedTable(new FileWriter($"{Runtime.TpGamePath}/FileSizeList.txt"));
|
||||
DecompressedFileTbl.WriteDecompressedTable(new FileWriter($"{Runtime.TpGamePath}/DecompressedSizeList.txt"));
|
||||
CompressedFileTbl.WriteCompressedTable(new FileWriter($"{Runtime.TpGamePath}/FileSizeListTEST.txt"));
|
||||
DecompressedFileTbl.WriteDecompressedTable(new FileWriter($"{Runtime.TpGamePath}/DecompressedSizeListTEST.txt"));
|
||||
}
|
||||
|
||||
return FileLog;
|
||||
|
|
Loading…
Reference in a new issue