Try to prevent any potential errors if config files fail to save.

This commit is contained in:
KillzXGaming 2019-12-20 17:59:57 -05:00
parent 1eab95f3c4
commit 7c396674f0
2 changed files with 4 additions and 2 deletions

View file

@ -19,7 +19,8 @@ namespace FirstPlugin
return;
}
ReadConfigFromFile(fileName);
if (File.Exists(fileName))
ReadConfigFromFile(fileName);
}
private static void ReadConfigFromFile(string fileName)

View file

@ -18,7 +18,8 @@ namespace Toolbox.Library
return;
}
ReadConfigFromFile(fileName);
if (File.Exists(fileName))
ReadConfigFromFile(fileName);
}
public static void GamePathsFromFile(string fileName)