Movies: pass SRAM to emulator before state is made
This commit is contained in:
parent
6873b1c291
commit
7865fe2980
|
@ -243,7 +243,6 @@ namespace BizHawk.Client.Common
|
|||
_queuedMovie = null;
|
||||
|
||||
Movie.ProcessSavestate(Movie.Emulator);
|
||||
Movie.ProcessSram(Movie.Emulator);
|
||||
|
||||
if (recordMode)
|
||||
{
|
||||
|
|
|
@ -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());
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue