interface Rewinder

This commit is contained in:
adelikat 2020-06-07 19:12:13 -05:00
parent e66e53c15d
commit 018bed9422
2 changed files with 17 additions and 2 deletions

View File

@ -4,7 +4,22 @@ using BizHawk.Emulation.Common;
namespace BizHawk.Client.Common
{
public class Rewinder : IDisposable
public interface IRewinder : IDisposable
{
int Count { get; }
bool HasBuffer { get; }
float FullnessRatio { get; }
long Size { get; }
int RewindFrequency { get; }
bool RewindActive { get; }
bool SuspendRewind { get; set; }
void Capture(int frame);
bool Rewind(int frames);
}
public class Rewinder : IRewinder
{
private readonly IStatable _statableCore;

View File

@ -896,7 +896,7 @@ namespace BizHawk.Client.EmuHawk
private Sound Sound => GlobalWin.Sound;
public CheatCollection CheatList => GlobalWin.CheatList;
public Rewinder Rewinder { get; set; }
public IRewinder Rewinder { get; set; }
private FirmwareManager FirmwareManager => GlobalWin.FirmwareManager;