Movies: pass SRAM to emulator before state is made

This commit is contained in:
alyosha-tas 2020-11-16 17:37:49 -05:00
parent 6873b1c291
commit 7865fe2980
2 changed files with 4 additions and 1 deletions

View File

@ -243,7 +243,6 @@ namespace BizHawk.Client.Common
_queuedMovie = null;
Movie.ProcessSavestate(Movie.Emulator);
Movie.ProcessSram(Movie.Emulator);
if (recordMode)
{

View File

@ -50,6 +50,10 @@ namespace BizHawk.Client.Common
else
{
var ms = new MemoryStream();
if (StartsFromSaveRam && emulator.HasSaveRam())
{
emulator.AsSaveRam().StoreSaveRam(SaveRam);
}
emulator.AsStatable().SaveStateBinary(new BinaryWriter(ms));
TasStateManager.Engage(ms.ToArray());
}