Skip to content

Commit 8cdca9f

Browse files
Fix breaking loop/Stack Overflow bug
1 parent 134346b commit 8cdca9f

File tree

1 file changed

+3
-5
lines changed

1 file changed

+3
-5
lines changed

TMD.cs

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -318,12 +318,12 @@ public void UpdateContents(string contentDir)
318318
string path = str1 + str2 + str3 + ".app";
319319
conts[index] = File.ReadAllBytes(path);
320320
}
321-
UpdateContents(conts);
321+
UpdateContentsBytes(conts);
322322
}
323323

324324
public void UpdateContents(byte[][] contents)
325325
{
326-
UpdateContents(contents);
326+
UpdateContentsBytes(contents);
327327
}
328328

329329
public string GetUpperTitleID()
@@ -491,8 +491,7 @@ private void WriteToStream(Stream writeStream)
491491
FireDebug("Writing TMD Finished...");
492492
}
493493

494-
/*
495-
private void PrivUpdateContents(byte[][] conts)
494+
private void UpdateContentsBytes(byte[][] conts)
496495
{
497496
SHA1 shA1 = SHA1.Create();
498497
for (int index = 0; index < this.contents.Count; ++index)
@@ -502,7 +501,6 @@ private void PrivUpdateContents(byte[][] conts)
502501
}
503502
shA1.Clear();
504503
}
505-
*/
506504

507505
private void ParseTmd(Stream tmdFile)
508506
{

0 commit comments

Comments
 (0)