diff --git a/ConfigSystem/MainConfiguration.cs b/ConfigSystem/MainConfiguration.cs index 23fa2aa..4c191ff 100644 --- a/ConfigSystem/MainConfiguration.cs +++ b/ConfigSystem/MainConfiguration.cs @@ -70,19 +70,12 @@ namespace Bot public void Load() { - MainConfiguration X = new MainConfiguration(); + inst = new MainConfiguration(); SerialManager sm = new SerialManager(); try { - X = sm.Read("Main"); + inst = sm.Read("Main"); - MainProgramDLL = X.MainProgramDLL; - first = X.first; - last = X.last; - ActivationCode = X.ActivationCode; - password = X.password; - GitPassword = X.GitPassword; - BotAdmins = X.BotAdmins; } catch (FileNotFoundException e) diff --git a/Program.cs b/Program.cs index 469f370..98bb115 100644 --- a/Program.cs +++ b/Program.cs @@ -56,6 +56,7 @@ namespace Bot ZHash.Instance.Key = "Test"; Console.WriteLine("ZHash (Test): " + ZHash.Instance.Key); conf = MainConfiguration.Instance; + conf.Load(); //MasterObjectCaches = ObjectCaches.Instance;