Pass test UndoingMidBatchRetainsBatchState.

This commit is contained in:
SuuperW 2025-07-04 14:24:24 -05:00
parent acfb41c843
commit 12a59e1710
No known key found for this signature in database
1 changed files with 2 additions and 2 deletions

View File

@ -104,6 +104,8 @@ namespace BizHawk.Client.Common
if (_recordingBatch)
{
// This means we are adding new actions to a batch that was undone while still in progress.
// So start a new one.
_recordingBatch = false;
BeginNewBatch();
}
@ -190,7 +192,6 @@ namespace BizHawk.Client.Common
UndoIndex--;
_recordingBatch = false;
return batch.TrueForAll(static a => a is MovieActionMarker) ? _movie.InputLogLength : PreviousUndoFrame;
}
@ -212,7 +213,6 @@ namespace BizHawk.Client.Common
b.Redo(_movie);
}
_recordingBatch = false;
return batch.TrueForAll(static a => a is MovieActionMarker) ? _movie.InputLogLength : PreviousRedoFrame;
}