Ejemplo n.º 1
0
 public static void SetupConfig()
 {
     try
     {
         if (File.Exists(CConfigPath))
         {
             CConfig = CConfigFile.Read(CConfigPath);
             // Add all the missing config properties in the json file
         }
         CConfig.Write(CConfigPath);
     }
     catch (Exception ex)
     {
         Console.ForegroundColor = ConsoleColor.Red;
         Console.WriteLine("Error in config file");
         Console.ForegroundColor = ConsoleColor.Gray;
         Log.Error("Config Exception");
         Log.Error(ex.ToString());
     }
 }
Ejemplo n.º 2
0
 public PluginTemplate(Main game)
     : base(game)
 {
     CConfig = new CConfigFile();
     Order = 0;
 }
Ejemplo n.º 3
0
 public PluginTemplate(Main game)
     : base(game)
 {
     CConfig = new CConfigFile();
     Order   = 0;
 }