fix "RestartMovie" which besides StartNewMovie also loaded the savestate. I think that's all of them, though

This commit is contained in:
zeromus 2014-04-25 21:43:29 +00:00
parent 51be257486
commit d30d93849d
1 changed files with 2 additions and 1 deletions

View File

@ -177,7 +177,8 @@ namespace BizHawk.Client.EmuHawk
LoadRom(CurrentlyOpenRom, true, true);
if (Global.MovieSession.Movie.Header.StartsFromSavestate)
{
LoadState(Global.MovieSession.Movie.Filename, Path.GetFileName(Global.MovieSession.Movie.Filename));
byte[] state = Convert.FromBase64String(Global.MovieSession.Movie.Header.SavestateBinaryBase64Blob);
Global.Emulator.LoadStateBinary(new BinaryReader(new MemoryStream(state)));
Global.Emulator.ResetCounters();
}