public ServerShopSystem(Main game) : base(game) { SSConfig = new SSConfigFile(); }
private static void SetupConfig() { try { if (File.Exists(SSConfigPath)) { SSConfig = SSConfigFile.Read(SSConfigPath); // Add all the missing config properties in the json file } SSConfig.Write(SSConfigPath); } catch (Exception ex) { Console.ForegroundColor = ConsoleColor.Red; Console.WriteLine("Error in (SS) config file"); Console.ForegroundColor = ConsoleColor.Gray; Log.Error("(SS) Config Exception"); Log.Error(ex.ToString()); } }