From c28a12a410c9bb1a7d9fbba46630241220fd345e Mon Sep 17 00:00:00 2001 From: adelikat Date: Sat, 16 Jan 2021 11:12:20 -0600 Subject: [PATCH] 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 --- src/BizHawk.Client.Common/movie/tasproj/TasMovie.IO.cs | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/src/BizHawk.Client.Common/movie/tasproj/TasMovie.IO.cs b/src/BizHawk.Client.Common/movie/tasproj/TasMovie.IO.cs index d27ca4ae40..0f0ec13dc6 100644 --- a/src/BizHawk.Client.Common/movie/tasproj/TasMovie.IO.cs +++ b/src/BizHawk.Client.Common/movie/tasproj/TasMovie.IO.cs @@ -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."); } }); }