mirror of
https://github.com/KillzXGaming/Switch-Toolbox
synced 2024-11-16 01:37:55 +00:00
Save back the file size table
This commit is contained in:
parent
c6cee62073
commit
f78ec57047
5 changed files with 11 additions and 1 deletions
Binary file not shown.
Binary file not shown.
Binary file not shown.
|
@ -54,7 +54,8 @@ namespace FirstPlugin
|
|||
public void Load(System.IO.Stream stream)
|
||||
{
|
||||
TPFileSizeTable table = new TPFileSizeTable();
|
||||
table.Read(new FileReader("G:\\Wii U\\DATA\\USA\\GAMES\\THE LEGEND OF ZELDA Twilight Princess HD[000500001019E500]\\content\\FileSizeList.txt"));
|
||||
table.Read(new FileReader($"{Runtime.TpGamePath}/FileSizeList.txt"));
|
||||
table.Write(new FileWriter($"{Runtime.TpGamePath}/FileSizeListTEST.txt"));
|
||||
|
||||
Text = FileName;
|
||||
|
||||
|
|
|
@ -26,5 +26,14 @@ namespace FirstPlugin
|
|||
Console.WriteLine(FileName + " " + Size);
|
||||
}
|
||||
}
|
||||
|
||||
public void Write(FileWriter writer)
|
||||
{
|
||||
foreach (var file in FileSizes)
|
||||
{
|
||||
writer.Write(file.Key, BinaryStringFormat.ZeroTerminated);
|
||||
writer.Write(file.Value.ToString(), BinaryStringFormat.ZeroTerminated);
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue