Merge pull request #94 from chenzw95/opendialog-fix

Explicitly set InitialDirectory when creating new OpenFileDialog
This commit is contained in:
Kaphotics 2016-03-30 10:46:51 -07:00
commit d4e746233c

View file

@ -198,6 +198,10 @@ namespace PKHeX
FileName = "main",
};
// Reset file dialog path if it no longer exists
if (!Directory.Exists(ofd.InitialDirectory))
ofd.InitialDirectory = Environment.CurrentDirectory;
// Detect main
string cyberpath = Util.GetTempFolder();
pathSDF = Util.GetSDFLocation();