Removed unnecessary if statement and reintroduced code removed from slight refactoring

This commit is contained in:
StudentBlake 2018-12-12 00:47:11 -05:00
parent 206cc3e9a3
commit 5ee76c270d
2 changed files with 4 additions and 3 deletions

View file

@ -336,9 +336,7 @@ namespace XCI_Explorer {
for (int n = 0; n < PFS0.PFS0_Headers[0].FileCount; n++) {
if (array3[n].Name.Equals(ncaTarget)) {
if (!Directory.Exists("tmp")) {
Directory.CreateDirectory("tmp");
}
Directory.CreateDirectory("tmp");
byte[] array5 = new byte[64 * 1024];
fileStream.Position = 16 + 24 * PFS0.PFS0_Headers[0].FileCount + PFS0.PFS0_Headers[0].StringTableSize + array3[n].Offset;

View file

@ -117,4 +117,7 @@
<resheader name="writer">
<value>System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
</resheader>
<metadata name="backgroundWorker1.TrayLocation" type="System.Drawing.Point, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a">
<value>17, 17</value>
</metadata>
</root>