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