-
Notifications
You must be signed in to change notification settings - Fork 381
Commit
- Loading branch information
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,5 @@ | ||
using System.Collections.Generic; | ||
using System.Diagnostics; | ||
using System.IO; | ||
using System.Linq; | ||
|
||
|
@@ -91,13 +92,7 @@ public void Create(string filename, SaveStateConfig config) | |
bs.PutLump(BinaryStateLump.Input, | ||
tw => | ||
{ | ||
// TODO: this should not happen and no exception should be thrown here. | ||
// Just make this noisy for now until the issue is fixed. | ||
if (_movieSession.Movie.FrameCount < _emulator.Frame) | ||
{ | ||
throw new InvalidOperationException( | ||
$"Tried to create a savestate at frame {_emulator.Frame}, but only got a log of length {_movieSession.Movie.FrameCount}!"); | ||
} | ||
Debug.Assert(_movieSession.Movie.FrameCount >= _emulator.Frame); | ||
This comment has been minimized.
Sorry, something went wrong.
This comment has been minimized.
Sorry, something went wrong.
Morilli
Author
Collaborator
|
||
// this never should have been a core's responsibility | ||
tw.WriteLine("Frame {0}", _emulator.Frame); | ||
_movieSession.HandleSaveState(tw); | ||
|
Keep the message
edit: done in 616437f