Skip to content

Commit

Permalink
docs: update FAQ.md
Browse files Browse the repository at this point in the history
  • Loading branch information
DorielRivalet committed Apr 16, 2023
1 parent fda4744 commit 0089a4b
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 3 deletions.
8 changes: 7 additions & 1 deletion FAQ.md
Original file line number Diff line number Diff line change
Expand Up @@ -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?

Expand Down
1 change: 1 addition & 0 deletions MHFZ_Overlay/ConfigWindow.xaml.cs
Original file line number Diff line number Diff line change
Expand Up @@ -1283,6 +1283,7 @@ private void DeletexNames_OnClosed()
}
}

// TODO: test
private void ExportUserSettings_Click(object sender, RoutedEventArgs e)
{
MainWindow.DataLoader.BackupSettings();
Expand Down
4 changes: 2 additions & 2 deletions MHFZ_Overlay/DataLoader.cs
Original file line number Diff line number Diff line change
Expand Up @@ -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);
}

/// <summary>
Expand Down

0 comments on commit 0089a4b

Please sign in to comment.