From 962717865f3daa7d1c890654a7ddd1456522da84 Mon Sep 17 00:00:00 2001 From: Zontreck Date: Mon, 20 Apr 2020 02:03:26 -0700 Subject: [PATCH] update --- ConfigSystem/MainConfiguration.cs | 11 ++--------- Program.cs | 1 + 2 files changed, 3 insertions(+), 9 deletions(-) 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;