Tastudio - never remove the frame 0 savestate in non-savestate-anchored movies

This commit is contained in:
adelikat 2014-10-15 15:23:48 +00:00
parent 3726b15d3b
commit fc311c12e9
1 changed files with 4 additions and 2 deletions

View File

@ -113,8 +113,10 @@ namespace BizHawk.Client.Common
{
if (Used + state.Length >= Settings.Cap)
{
Used -= States.ElementAt(0).Value.Length;
States.RemoveAt(0);
var first = _movie.StartsFromSavestate ? 0 : 1;
Used -= States.ElementAt(first).Value.Length;
States.RemoveAt(first);
}
States.Add(frame, state);