Skip to content

Commit

Permalink
Restore exception message in SavestateFile.Create
Browse files Browse the repository at this point in the history
partially reverts e9d6716
  • Loading branch information
YoshiRulz committed Jul 11, 2024
1 parent ee0c0a8 commit 616437f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/BizHawk.Client.Common/savestates/SavestateFile.cs
Original file line number Diff line number Diff line change
Expand Up @@ -92,7 +92,7 @@ public void Create(string filename, SaveStateConfig config)
bs.PutLump(BinaryStateLump.Input,
tw =>
{
Debug.Assert(_movieSession.Movie.FrameCount >= _emulator.Frame);
Debug.Assert(_movieSession.Movie.FrameCount >= _emulator.Frame, $"Tried to create a savestate at frame {_emulator.Frame}, but only got a log of length {_movieSession.Movie.FrameCount}!");
// this never should have been a core's responsibility
tw.WriteLine("Frame {0}", _emulator.Frame);
_movieSession.HandleSaveState(tw);
Expand Down

0 comments on commit 616437f

Please sign in to comment.