Skip to content
Permalink
Browse files

GSDumpGUI: Avoid startup crash on invalid path settings.

  • Loading branch information...
KrossX authored and lightningterror committed Aug 1, 2019
1 parent 62c1fc6 commit 6bc322cab11bc040ad8e7d88121ac1d4cc149da4
Showing with 2 additions and 2 deletions.
  1. +2 −2 tools/GSDumpGUI/Forms/frmMain.cs
@@ -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;

0 comments on commit 6bc322c

Please sign in to comment.
You can’t perform that action at this time.