ye olde drive lighte

This commit is contained in:
goyuken 2015-05-19 23:33:50 +00:00
parent 894cae0c52
commit 46c374f8a3
5 changed files with 10 additions and 2 deletions

View File

@ -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"])

View File

@ -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; }

View File

@ -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;
}
}

View File

@ -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.