Improve error message.

This commit is contained in:
J.D. Purcell 2019-11-01 14:53:37 -04:00
parent 0fdc533071
commit 19dd590f2c
1 changed files with 4 additions and 2 deletions

View File

@ -117,9 +117,11 @@ namespace BizHawk.Client.EmuHawk
try
{
Global.Config = ConfigService.Load<Config>(PathManager.DefaultIniPath);
} catch (Exception e) {
}
catch (Exception e)
{
new ExceptionBox(e).ShowDialog();
new ExceptionBox("Since your config file is corrupted, we're going to recreate it. Back it up before proceeding if you want to investigate further.").ShowDialog();
new ExceptionBox("Since your config file is corrupted or from a different BizHawk version, we're going to recreate it. Back it up before proceeding if you want to investigate further.").ShowDialog();
File.Delete(PathManager.DefaultIniPath);
Global.Config = ConfigService.Load<Config>(PathManager.DefaultIniPath);
}