From b483cd8002997f95372f8afb79bf3382b9ef0ca8 Mon Sep 17 00:00:00 2001 From: Kaphotics Date: Tue, 6 Sep 2016 17:19:30 -0700 Subject: [PATCH] Check if 'wc6' exists Thanks Destinyy! --- PKHeX/Subforms/SAV_MysteryGiftDB.cs | 2 ++ 1 file changed, 2 insertions(+) diff --git a/PKHeX/Subforms/SAV_MysteryGiftDB.cs b/PKHeX/Subforms/SAV_MysteryGiftDB.cs index 0b64d2ef1..ad1a579b6 100644 --- a/PKHeX/Subforms/SAV_MysteryGiftDB.cs +++ b/PKHeX/Subforms/SAV_MysteryGiftDB.cs @@ -76,6 +76,8 @@ namespace PKHeX // Load Data RawDB = new List(); RawDB.AddRange(Legal.WC6DB); + + if (Directory.Exists(DatabasePath)) foreach (string file in Directory.GetFiles(DatabasePath, "*", SearchOption.AllDirectories)) { FileInfo fi = new FileInfo(file);