From 8cdca9ffb06ce91bf3f4a3ce7f228bdcc19faa4f Mon Sep 17 00:00:00 2001 From: Michael Malloy Date: Sat, 15 May 2021 06:57:04 -0500 Subject: [PATCH] Fix breaking loop/Stack Overflow bug --- TMD.cs | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/TMD.cs b/TMD.cs index 40ba491..df3402b 100644 --- a/TMD.cs +++ b/TMD.cs @@ -318,12 +318,12 @@ namespace libWiiSharp string path = str1 + str2 + str3 + ".app"; conts[index] = File.ReadAllBytes(path); } - UpdateContents(conts); + UpdateContentsBytes(conts); } public void UpdateContents(byte[][] contents) { - UpdateContents(contents); + UpdateContentsBytes(contents); } public string GetUpperTitleID() @@ -491,8 +491,7 @@ namespace libWiiSharp FireDebug("Writing TMD Finished..."); } - /* - private void PrivUpdateContents(byte[][] conts) + private void UpdateContentsBytes(byte[][] conts) { SHA1 shA1 = SHA1.Create(); for (int index = 0; index < this.contents.Count; ++index) @@ -502,7 +501,6 @@ namespace libWiiSharp } shA1.Clear(); } - */ private void ParseTmd(Stream tmdFile) {