Use coreoutputcomm for led light feature
This commit is contained in:
parent
453eef6da2
commit
5433bdacfd
|
@ -17,6 +17,7 @@ namespace BizHawk.Emulation.Computers.Commodore64
|
|||
CoreOutputComm = new CoreOutputComm();
|
||||
CoreInputComm = new CoreInputComm();
|
||||
Init(Region.PAL);
|
||||
CoreOutputComm.UsesDriveLed = true;
|
||||
}
|
||||
|
||||
// internal variables
|
||||
|
@ -132,6 +133,8 @@ namespace BizHawk.Emulation.Computers.Commodore64
|
|||
{
|
||||
LagCount++;
|
||||
}
|
||||
|
||||
CoreOutputComm.DriveLED = DriveLED;
|
||||
}
|
||||
|
||||
public byte[] SaveStateBinary()
|
||||
|
|
|
@ -55,6 +55,9 @@ namespace BizHawk
|
|||
public bool CpuTraceAvailable = false;
|
||||
|
||||
public string TraceHeader = "Instructions";
|
||||
|
||||
public bool DriveLED = false;
|
||||
public bool UsesDriveLed = false;
|
||||
}
|
||||
|
||||
public class TraceBuffer
|
||||
|
|
|
@ -4530,13 +4530,13 @@ namespace BizHawk.MultiClient
|
|||
{
|
||||
if (StatusSlot0.Visible)
|
||||
{
|
||||
if (Global.Emulator is C64)
|
||||
if (Global.Emulator.CoreOutputComm.UsesDriveLed)
|
||||
{
|
||||
if (!StatusBarLedLight.Visible)
|
||||
{
|
||||
StatusBarLedLight.Visible = true;
|
||||
}
|
||||
if ((Global.Emulator as C64).DriveLED)
|
||||
if (Global.Emulator.CoreOutputComm.DriveLED)
|
||||
{
|
||||
StatusBarLedLight.Image = BizHawk.MultiClient.Properties.Resources.LightOn;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue