ye olde drive lighte
This commit is contained in:
parent
894cae0c52
commit
46c374f8a3
|
@ -14,7 +14,7 @@ namespace BizHawk.Emulation.Cores.Computers.AppleII
|
|||
isPorted: true,
|
||||
isReleased: false
|
||||
)]
|
||||
public partial class AppleII : IEmulator
|
||||
public partial class AppleII : IEmulator, IDriveLight
|
||||
{
|
||||
public AppleII(CoreComm comm, IEnumerable<GameInfo> gameInfoSet, IEnumerable<byte[]> romSet, object settings)
|
||||
: this(comm, gameInfoSet.First(), romSet.First(), settings)
|
||||
|
@ -120,6 +120,9 @@ namespace BizHawk.Emulation.Cores.Computers.AppleII
|
|||
AppleIIController.BoolButtons.AddRange(ExtraButtons);
|
||||
}
|
||||
|
||||
public bool DriveLightEnabled { get { return true; } }
|
||||
public bool DriveLightOn { get { return _machine.DriveLight; } }
|
||||
|
||||
private void FrameAdv(bool render, bool rendersound)
|
||||
{
|
||||
if (Controller["Next Disk"])
|
||||
|
|
|
@ -44,7 +44,7 @@ namespace Jellyfish.Virtu
|
|||
public abstract void WriteTrack(int number, int fraction, byte[] buffer);
|
||||
|
||||
public string Name { get; private set; }
|
||||
[SuppressMessage("Microsoft.Performance", "CA1819:PropertiesShouldNotReturnArrays")]
|
||||
|
||||
public byte[] Data { get; protected set; }
|
||||
public bool IsWriteProtected { get; private set; }
|
||||
|
||||
|
|
|
@ -65,6 +65,7 @@ namespace Jellyfish.Virtu
|
|||
_trackOffset = 0;
|
||||
}
|
||||
|
||||
Machine.DriveLight = true;
|
||||
return data;
|
||||
}
|
||||
|
||||
|
@ -83,6 +84,8 @@ namespace Jellyfish.Virtu
|
|||
{
|
||||
_trackOffset = 0;
|
||||
}
|
||||
|
||||
Machine.DriveLight = true;
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
@ -88,6 +88,7 @@ namespace Jellyfish.Virtu
|
|||
public void BizFrameAdvance(IEnumerable<string> buttons)
|
||||
{
|
||||
Lagged = true;
|
||||
DriveLight = false;
|
||||
|
||||
Keyboard.SetKeys(buttons);
|
||||
|
||||
|
@ -195,5 +196,6 @@ namespace Jellyfish.Virtu
|
|||
public DiskIIController BootDiskII { get; private set; }
|
||||
|
||||
public bool Lagged { get; set; }
|
||||
public bool DriveLight { get; set; }
|
||||
}
|
||||
}
|
||||
|
|
Binary file not shown.
Loading…
Reference in New Issue