mirror of https://github.com/PCSX2/pcsx2.git
GSDumpGUI: Avoid startup crash on invalid path settings.
This commit is contained in:
parent
62c1fc621a
commit
6bc322cab1
|
@ -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;
|
||||
|
|
Loading…
Reference in New Issue