Remove Global.NullControls
This commit is contained in:
parent
fe00e83f6c
commit
be51677fde
|
@ -26,7 +26,6 @@ namespace BizHawk.Client.Common
|
|||
/// </summary>
|
||||
public static int SoundMaxBufferDeficitMs;
|
||||
|
||||
public static Controller NullControls;
|
||||
public static AutofireController AutofireNullControls;
|
||||
|
||||
//the movie will be spliced inbetween these if it is present
|
||||
|
|
|
@ -274,7 +274,7 @@ namespace BizHawk.Client.EmuHawk
|
|||
var comm = CreateCoreComm();
|
||||
CoreFileProvider.SyncCoreCommInputSignals(comm);
|
||||
Global.Emulator = new NullEmulator(comm, Global.Config.GetCoreSettings<NullEmulator>());
|
||||
Global.ActiveController = Global.NullControls;
|
||||
Global.ActiveController = new Controller(NullEmulator.NullController);
|
||||
Global.AutoFireController = Global.AutofireNullControls;
|
||||
Global.AutofireStickyXORAdapter.SetOnOffPatternFromConfig();
|
||||
try { GlobalWin.Sound = new Sound(Handle); }
|
||||
|
@ -1605,7 +1605,6 @@ namespace BizHawk.Client.EmuHawk
|
|||
}
|
||||
|
||||
Global.ClientControls = controls;
|
||||
Global.NullControls = new Controller(NullEmulator.NullController);
|
||||
Global.AutofireNullControls = new AutofireController(NullEmulator.NullController, Global.Emulator);
|
||||
|
||||
}
|
||||
|
@ -3498,7 +3497,7 @@ namespace BizHawk.Client.EmuHawk
|
|||
var coreComm = CreateCoreComm();
|
||||
CoreFileProvider.SyncCoreCommInputSignals(coreComm);
|
||||
Global.Emulator = new NullEmulator(coreComm, Global.Config.GetCoreSettings<NullEmulator>());
|
||||
Global.ActiveController = Global.NullControls;
|
||||
Global.ActiveController = new Controller(NullEmulator.NullController);
|
||||
Global.AutoFireController = Global.AutofireNullControls;
|
||||
RewireSound();
|
||||
RebootStatusBarIcon.Visible = false;
|
||||
|
|
Loading…
Reference in New Issue