Restore exception message in `SavestateFile.Create`

partially reverts e9d6716a3
This commit is contained in:
YoshiRulz 2024-07-12 08:09:59 +10:00
parent ee0c0a80d0
commit 616437ff31
No known key found for this signature in database
GPG Key ID: C4DE31C245353FB7
1 changed files with 1 additions and 1 deletions
src/BizHawk.Client.Common/savestates

View File

@ -92,7 +92,7 @@ namespace BizHawk.Client.Common
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);