simplify Rewinder api a bit

This commit is contained in:
adelikat 2020-06-07 19:22:08 -05:00
parent 225f1e7c59
commit ef9bb3208d
2 changed files with 1 additions and 4 deletions

View File

@ -7,7 +7,6 @@ namespace BizHawk.Client.Common
public interface IRewinder : IDisposable
{
int Count { get; }
bool HasBuffer { get; }
float FullnessRatio { get; }
long Size { get; }
int RewindFrequency { get; }
@ -46,8 +45,6 @@ namespace BizHawk.Client.Common
public long Size => _rewindBuffer?.Size ?? 0;
public bool HasBuffer => _rewindBuffer != null;
public int RewindFrequency { get; }
public Rewinder(IStatable statableCore, IRewindSettings settings)

View File

@ -28,7 +28,7 @@ namespace BizHawk.Client.EmuHawk
private void RewindConfig_Load(object sender, EventArgs e)
{
if (_mainForm.Rewinder.HasBuffer)
if (_mainForm.Rewinder?.RewindActive == true)
{
FullnessLabel.Text = $"{_mainForm.Rewinder.FullnessRatio * 100:0.00}%";
RewindFramesUsedLabel.Text = _mainForm.Rewinder.Count.ToString();