Remove Rewinder from Global and put as a mainform variable instead
This commit is contained in:
parent
c101f672ee
commit
e7e30371fe
|
@ -11,7 +11,6 @@ namespace BizHawk.Client.Common
|
|||
public static GameInfo Game;
|
||||
public static CheatCollection CheatList;
|
||||
public static FirmwareManager FirmwareManager;
|
||||
public static Rewinder Rewinder;
|
||||
|
||||
public static IMovieSession MovieSession = new MovieSession();
|
||||
|
||||
|
|
|
@ -1035,7 +1035,7 @@ namespace BizHawk.Client.EmuHawk
|
|||
{
|
||||
if (Emulator.HasSavestates())
|
||||
{
|
||||
using var form = new RewindConfig(Global.Rewinder, Config, Emulator.AsStatable());
|
||||
using var form = new RewindConfig(Rewinder, Config, Emulator.AsStatable());
|
||||
AddOnScreenMessage(form.ShowDialog().IsOk()
|
||||
? "Rewind and State settings saved"
|
||||
: "Rewind config aborted");
|
||||
|
|
|
@ -830,11 +830,7 @@ namespace BizHawk.Client.EmuHawk
|
|||
private AutoFireStickyXorAdapter AutofireStickyXORAdapter => Global.AutofireStickyXORAdapter;
|
||||
private ClickyVirtualPadController ClickyVirtualPadController => Global.ClickyVirtualPadController;
|
||||
|
||||
private Rewinder Rewinder
|
||||
{
|
||||
get => Global.Rewinder;
|
||||
set => Global.Rewinder = value;
|
||||
}
|
||||
private Rewinder Rewinder { get; }
|
||||
|
||||
private FirmwareManager FirmwareManager => Global.FirmwareManager;
|
||||
private Controller ClientControls => Global.ClientControls;
|
||||
|
|
Loading…
Reference in New Issue