simplify Rewinder api a bit
This commit is contained in:
parent
225f1e7c59
commit
ef9bb3208d
|
@ -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)
|
||||
|
|
|
@ -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();
|
||||
|
|
Loading…
Reference in New Issue