Example #1
0
 public ServerShopSystem(Main game)
     : base(game)
 {
     SSConfig = new SSConfigFile();
 }
Example #2
0
 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());
     }
 }