Exemple #1
0
 public static void Reload()
 {
     Log.Information("[FConfig][Reload] Reloading...");
     FSConfig.Config = new FSConfigJObject();
     FConfig.Load();
     Log.Information("[FConfig][Reload] Reload complete.");
 }
Exemple #2
0
 public FConfig()
 {
     if (File.Exists(jsonPath))
     {
         Log.Information("[FConfig][Entry] Config file found, trying to load...");
         FConfig.Load();
     }
     else
     {
         Log.Warning("[FConfig][Entry] Config not file found, trying to create blank...");
         FConfig.Save(true); //Save blank/null values
     }
 }
 private void Window_Closing(object sender, CancelEventArgs e)
 {
     FConfig.Save();
 }