Save back the file size table

This commit is contained in:
KillzXGaming 2019-05-01 17:37:46 -04:00
parent c6cee62073
commit f78ec57047
5 changed files with 11 additions and 1 deletions

Binary file not shown.

View file

@ -54,7 +54,8 @@ namespace FirstPlugin
public void Load(System.IO.Stream stream) public void Load(System.IO.Stream stream)
{ {
TPFileSizeTable table = new TPFileSizeTable(); 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; Text = FileName;

View file

@ -26,5 +26,14 @@ namespace FirstPlugin
Console.WriteLine(FileName + " " + Size); 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);
}
}
} }
} }