From 5ee76c270dd06ffead9c91c1c38d7df2f8161199 Mon Sep 17 00:00:00 2001
From: StudentBlake <6874208+StudentBlake@users.noreply.github.com>
Date: Wed, 12 Dec 2018 00:47:11 -0500
Subject: [PATCH] Removed unnecessary if statement and reintroduced code
removed from slight refactoring
---
XCI_Explorer/MainForm.cs | 4 +---
XCI_Explorer/MainForm.resx | 3 +++
2 files changed, 4 insertions(+), 3 deletions(-)
diff --git a/XCI_Explorer/MainForm.cs b/XCI_Explorer/MainForm.cs
index ba0ff47..95fb582 100644
--- a/XCI_Explorer/MainForm.cs
+++ b/XCI_Explorer/MainForm.cs
@@ -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;
diff --git a/XCI_Explorer/MainForm.resx b/XCI_Explorer/MainForm.resx
index 1af7de1..59099f2 100644
--- a/XCI_Explorer/MainForm.resx
+++ b/XCI_Explorer/MainForm.resx
@@ -117,4 +117,7 @@
System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089
+
+ 17, 17
+
\ No newline at end of file