Try to prevent any potential errors if config files fail to save.
This commit is contained in:
parent
1eab95f3c4
commit
7c396674f0
@ -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 New Issue
Block a user