From e1b983bc59dee82c93c1b47fdcfaab333410f15a Mon Sep 17 00:00:00 2001 From: Kurt Date: Tue, 17 Jul 2018 21:26:25 -0700 Subject: [PATCH] Fix auto-detect save file on load introduced in https://github.com/kwsch/PKHeX/commit/99673706a04dd14ee213b69137e1b6ea3613a87a reference the field that stores the full file path https://projectpokemon.org/home/forums/topic/46293-not-reading-card/ --- PKHeX.WinForms/MainWindow/Main.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/PKHeX.WinForms/MainWindow/Main.cs b/PKHeX.WinForms/MainWindow/Main.cs index c344f47cf..d5513f9de 100644 --- a/PKHeX.WinForms/MainWindow/Main.cs +++ b/PKHeX.WinForms/MainWindow/Main.cs @@ -1181,7 +1181,7 @@ private static bool DetectSaveFile(out string path) if (sav == null && !string.IsNullOrWhiteSpace(msg)) WinFormsUtil.Error(msg); - path = sav?.FileName; + path = sav?.FilePath; return path != null && File.Exists(path); }