fix previous commit, new up a new state manager, also pop up a message to the user. Anyone can feel free to improve the error message

This commit is contained in:
adelikat 2021-01-16 11:12:20 -06:00
parent 2f6bbd155f
commit c28a12a410
1 changed files with 5 additions and 1 deletions

View File

@ -174,9 +174,13 @@ namespace BizHawk.Client.Common
}
catch
{
// Do nothing, if state history got corrupted, the file is still very much useable
// Continue with a fresh manager. If state history got corrupted, the file is still very much useable
// and we would want the user to be able to load, and regenerate their state history
// however, we still have an issue of how state history got corrupted
TasStateManager = new ZwinderStateManager(
Session.Settings.DefaultTasStateManagerSettings,
IsReserved);
Session.PopupMessage("State history was corrupted, clearing and working with a fresh history.");
}
});
}