Rewinder - remove message callback, I dont' think this message is worth the code, especially since mainform always adds a message
This commit is contained in:
parent
78c1482720
commit
100fc2bad5
|
@ -19,8 +19,6 @@ namespace BizHawk.Client.Common
|
||||||
private bool _lastRewindLoadedState;
|
private bool _lastRewindLoadedState;
|
||||||
private byte[] _deltaBuffer = new byte[0];
|
private byte[] _deltaBuffer = new byte[0];
|
||||||
|
|
||||||
public Action<string> MessageCallback { get; set; }
|
|
||||||
|
|
||||||
public bool RewindActive => RewindEnabled && !SuspendRewind;
|
public bool RewindActive => RewindEnabled && !SuspendRewind;
|
||||||
|
|
||||||
private bool RewindEnabled { get; set; }
|
private bool RewindEnabled { get; set; }
|
||||||
|
@ -61,10 +59,6 @@ namespace BizHawk.Client.Common
|
||||||
RewindFrequency = rewindConfig.FrequencySmall;
|
RewindFrequency = rewindConfig.FrequencySmall;
|
||||||
}
|
}
|
||||||
|
|
||||||
MessageCallback?.Invoke(RewindEnabled ?
|
|
||||||
$"Rewind enabled, frequency: {RewindFrequency}" :
|
|
||||||
"Rewind disabled");
|
|
||||||
|
|
||||||
_rewindDeltaEnable = rewindConfig.UseDelta;
|
_rewindDeltaEnable = rewindConfig.UseDelta;
|
||||||
|
|
||||||
if (RewindActive)
|
if (RewindActive)
|
||||||
|
|
|
@ -200,10 +200,7 @@ namespace BizHawk.Client.EmuHawk
|
||||||
}
|
}
|
||||||
|
|
||||||
GlobalWin.MainForm = this;
|
GlobalWin.MainForm = this;
|
||||||
Rewinder = new Rewinder
|
Rewinder = new Rewinder();
|
||||||
{
|
|
||||||
MessageCallback = AddOnScreenMessage
|
|
||||||
};
|
|
||||||
|
|
||||||
Global.InputManager.ControllerInputCoalescer = new ControllerInputCoalescer();
|
Global.InputManager.ControllerInputCoalescer = new ControllerInputCoalescer();
|
||||||
Global.FirmwareManager = new FirmwareManager();
|
Global.FirmwareManager = new FirmwareManager();
|
||||||
|
|
Loading…
Reference in New Issue