cleanup console stuff
This commit is contained in:
@@ -3,13 +3,8 @@ using System.IO;
|
||||
|
||||
namespace Game;
|
||||
|
||||
public class ConfigParser
|
||||
public static class ConfigParser
|
||||
{
|
||||
private ConfigParser()
|
||||
{
|
||||
|
||||
}
|
||||
|
||||
public static Config ParseFile(string path)
|
||||
{
|
||||
Config config = new Config();
|
||||
@@ -18,8 +13,8 @@ public class ConfigParser
|
||||
Console.Print($"Config file not found in path: {path}");
|
||||
return config;
|
||||
}
|
||||
/*using*/ FileStream file = File.OpenRead(path);
|
||||
/*using*/ StreamReader sr = new StreamReader(file);
|
||||
using FileStream file = File.OpenRead(path);
|
||||
using StreamReader sr = new StreamReader(file);
|
||||
|
||||
List<string> commands = new List<string>();
|
||||
string line;
|
||||
|
||||
Reference in New Issue
Block a user