fix error when config is missing
This commit is contained in:
@@ -12,6 +12,8 @@ namespace Game
|
||||
public static Config ParseFile(string path)
|
||||
{
|
||||
Config config = new Config();
|
||||
if (!File.Exists(path))
|
||||
return config;
|
||||
using FileStream file = File.OpenRead(path);
|
||||
using StreamReader sr = new StreamReader(file);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user