mirror of
https://github.com/KillzXGaming/Switch-Toolbox
synced 2024-11-26 06:20:24 +00:00
Try to prevent any potential errors if config files fail to save.
This commit is contained in:
parent
1eab95f3c4
commit
7c396674f0
2 changed files with 4 additions and 2 deletions
|
@ -19,7 +19,8 @@ namespace FirstPlugin
|
|||
return;
|
||||
}
|
||||
|
||||
ReadConfigFromFile(fileName);
|
||||
if (File.Exists(fileName))
|
||||
ReadConfigFromFile(fileName);
|
||||
}
|
||||
|
||||
private static void ReadConfigFromFile(string fileName)
|
||||
|
|
|
@ -18,7 +18,8 @@ namespace Toolbox.Library
|
|||
return;
|
||||
}
|
||||
|
||||
ReadConfigFromFile(fileName);
|
||||
if (File.Exists(fileName))
|
||||
ReadConfigFromFile(fileName);
|
||||
}
|
||||
|
||||
public static void GamePathsFromFile(string fileName)
|
||||
|
|
Loading…
Reference in a new issue