Skip to content

Commit

Permalink
GSDumpGUI: Avoid startup crash on invalid path settings.
Browse files Browse the repository at this point in the history
  • Loading branch information
KrossX authored and lightningterror committed Aug 7, 2019
1 parent 62c1fc6 commit 6bc322c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions tools/GSDumpGUI/Forms/frmMain.cs
Original file line number Diff line number Diff line change
Expand Up @@ -116,10 +116,10 @@ public 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;
Expand Down

0 comments on commit 6bc322c

Please sign in to comment.