From 6ce4f351d7d6f659ebc505fd88bb216aacae07cf Mon Sep 17 00:00:00 2001 From: Kurt Date: Sat, 23 Jan 2021 14:58:36 -0800 Subject: [PATCH] Check if directory still exists on startup Closes #440 --- pk3DS/Main.cs | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/pk3DS/Main.cs b/pk3DS/Main.cs index ad1e36b..1b660ca 100644 --- a/pk3DS/Main.cs +++ b/pk3DS/Main.cs @@ -186,9 +186,13 @@ private void OpenQuick(string path) } else // Directory { + if (!Directory.Exists(path)) + return; + // Check for ROMFS/EXEFS/EXHEADER RomFSPath = ExeFSPath = null; // Reset Config = null; + string[] folders = Directory.GetDirectories(path); int count = folders.Length;