From 0089a4be65b6014042eb64898a88f72b9c9fdddf Mon Sep 17 00:00:00 2001 From: Doriel Rivalet <100863878+DorielRivalet@users.noreply.github.com> Date: Sun, 16 Apr 2023 02:23:18 -0300 Subject: [PATCH] docs: update FAQ.md --- FAQ.md | 8 +++++++- MHFZ_Overlay/ConfigWindow.xaml.cs | 1 + MHFZ_Overlay/DataLoader.cs | 4 ++-- 3 files changed, 10 insertions(+), 3 deletions(-) diff --git a/FAQ.md b/FAQ.md index bf60ec82..b6a36987 100644 --- a/FAQ.md +++ b/FAQ.md @@ -93,7 +93,13 @@ The fix would have to come from Window's side, not the overlay. ## I cannot run the setup executable, what should I do? -Make sure to run as Administrator +Make sure to run as Administrator. + +## How to import/export settings from the overlay? + +Open the overlay settings, go to General tab, press the Backup settings button, and then save to a file. Next time you open the overlay, the settings are automatically restored from this backup and the backup is deleted. So if you wish to have persistent settings during updates, press the backup button just before updating to a newer version. + +The JSON file is meant to be used for debugging or troubleshooting purposes. ## My question isn't answered here, how can I contact the developers? diff --git a/MHFZ_Overlay/ConfigWindow.xaml.cs b/MHFZ_Overlay/ConfigWindow.xaml.cs index 6ba09ddc..45f60d5a 100644 --- a/MHFZ_Overlay/ConfigWindow.xaml.cs +++ b/MHFZ_Overlay/ConfigWindow.xaml.cs @@ -1283,6 +1283,7 @@ private void DeletexNames_OnClosed() } } + // TODO: test private void ExportUserSettings_Click(object sender, RoutedEventArgs e) { MainWindow.DataLoader.BackupSettings(); diff --git a/MHFZ_Overlay/DataLoader.cs b/MHFZ_Overlay/DataLoader.cs index 84cbd033..a1d66ddb 100644 --- a/MHFZ_Overlay/DataLoader.cs +++ b/MHFZ_Overlay/DataLoader.cs @@ -42,8 +42,8 @@ public void BackupSettings() string settingsFile = ConfigurationManager.OpenExeConfiguration(ConfigurationUserLevel.PerUserRoamingAndLocal).FilePath; string destination = Path.GetDirectoryName(Assembly.GetExecutingAssembly().Location) + "\\..\\last.config"; File.Copy(settingsFile, destination, true); - logger.Info("FILE OPERATION: Backed up settings. File: {0}, Destination: {1}", settingsFile, destination); - MessageBox.Show(string.Format("Backed up settings. File: {0}, Destination: {1}", settingsFile, destination), "MHF-Z Overlay Settings", MessageBoxButton.OK,MessageBoxImage.Information); + logger.Info("FILE OPERATION: Backed up settings. Original file: {0}, Destination: {1}", settingsFile, destination); + MessageBox.Show(string.Format("Backed up settings. Original file: {0}, Destination: {1}", settingsFile, destination), "MHF-Z Overlay Settings", MessageBoxButton.OK,MessageBoxImage.Information); } ///