BasicBot - Remove unnecessary usage of Global.Emulator
This commit is contained in:
parent
0af5fb50b1
commit
546947041b
|
@ -916,7 +916,7 @@ namespace BizHawk.Client.EmuHawk
|
||||||
}
|
}
|
||||||
else if (_isBotting)
|
else if (_isBotting)
|
||||||
{
|
{
|
||||||
if (Global.Emulator.Frame >= _targetFrame)
|
if (Emulator.Frame >= _targetFrame)
|
||||||
{
|
{
|
||||||
Attempts++;
|
Attempts++;
|
||||||
Frames += FrameLength;
|
Frames += FrameLength;
|
||||||
|
@ -1075,7 +1075,7 @@ namespace BizHawk.Client.EmuHawk
|
||||||
GlobalWin.MainForm.LoadQuickSave(SelectedSlot, false, true); // Triggers an UpdateValues call
|
GlobalWin.MainForm.LoadQuickSave(SelectedSlot, false, true); // Triggers an UpdateValues call
|
||||||
_dontUpdateValues = false;
|
_dontUpdateValues = false;
|
||||||
|
|
||||||
_targetFrame = Global.Emulator.Frame + (int)FrameLengthNumeric.Value;
|
_targetFrame = Emulator.Frame + (int)FrameLengthNumeric.Value;
|
||||||
|
|
||||||
GlobalWin.MainForm.UnpauseEmulator();
|
GlobalWin.MainForm.UnpauseEmulator();
|
||||||
if (Settings.TurboWhenBotting)
|
if (Settings.TurboWhenBotting)
|
||||||
|
|
Loading…
Reference in New Issue