Save back the file size table
This commit is contained in:
parent
c6cee62073
commit
f78ec57047
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…
x
Reference in New Issue
Block a user