예제 #1
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
     }
 }
예제 #2
0
 private void Window_Closing(object sender, CancelEventArgs e)
 {
     FConfig.Save();
 }