GSDumpGUI: Avoid startup crash on invalid path settings.

This commit is contained in:
KrossX 2019-08-01 11:05:21 -03:00 committed by lightningterror
parent 62c1fc621a
commit 6bc322cab1
1 changed files with 2 additions and 2 deletions

View File

@ -116,10 +116,10 @@ namespace GSDumpGUI
_availableGsDumps.OnIndexUpdatedEvent += UpdatePreviewImage;
if (String.IsNullOrEmpty(Settings.GSDXDir))
if (String.IsNullOrEmpty(Settings.GSDXDir) || !Directory.Exists(Settings.GSDXDir))
Settings.GSDXDir = AppDomain.CurrentDomain.BaseDirectory;
if (String.IsNullOrEmpty(Settings.DumpDir))
if (String.IsNullOrEmpty(Settings.DumpDir) || !Directory.Exists(Settings.DumpDir))
Settings.DumpDir = AppDomain.CurrentDomain.BaseDirectory;
txtGSDXDirectory.Text = Settings.GSDXDir;