Make sure the path is still valid (#271)

This commit is contained in:
JelleInfinity 2022-10-04 12:55:13 +02:00 committed by GitHub
parent e70c652d1e
commit 2ed021edd0
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -29,7 +29,7 @@ public Main()
Settings = SettingsSerializer.GetSettings<ProgramSettings>(ProgramSettingsPath).Result;
CB_Lang.SelectedIndex = Settings.Language;
if (!string.IsNullOrWhiteSpace(Settings.GamePath))
if (!string.IsNullOrWhiteSpace(Settings.GamePath) && Directory.Exists(Settings.GamePath))
OpenPath(Settings.GamePath, Settings.GameOverride);
DragDrop += (s, e) =>