Make Gambatte show link status for printer connection
This commit is contained in:
parent
200ab8f8d8
commit
56cdf32929
|
@ -365,7 +365,7 @@
|
||||||
</Compile>
|
</Compile>
|
||||||
<Compile Include="Consoles\Atari\A7800Hawk\M6532.cs" />
|
<Compile Include="Consoles\Atari\A7800Hawk\M6532.cs" />
|
||||||
<Compile Include="Consoles\Atari\A7800Hawk\Maria.cs" />
|
<Compile Include="Consoles\Atari\A7800Hawk\Maria.cs" />
|
||||||
<Compile Include="Consoles\Atari\A7800Hawk\Pokey.cs" />
|
<Compile Include="Consoles\Atari\A7800Hawk\Pokey.cs" />
|
||||||
<Compile Include="Consoles\Atari\A7800Hawk\TIA_Sound\Tia.Audio.cs" />
|
<Compile Include="Consoles\Atari\A7800Hawk\TIA_Sound\Tia.Audio.cs" />
|
||||||
<Compile Include="Consoles\Atari\A7800Hawk\TIA_Sound\TIA.cs" />
|
<Compile Include="Consoles\Atari\A7800Hawk\TIA_Sound\TIA.cs" />
|
||||||
<Compile Include="Consoles\Atari\A7800Hawk\TIA_Sound\Tia.SyncState.cs" />
|
<Compile Include="Consoles\Atari\A7800Hawk\TIA_Sound\Tia.SyncState.cs" />
|
||||||
|
@ -463,6 +463,9 @@
|
||||||
<Compile Include="Consoles\Nintendo\Gameboy\Gambatte.IEmulator.cs">
|
<Compile Include="Consoles\Nintendo\Gameboy\Gambatte.IEmulator.cs">
|
||||||
<DependentUpon>Gambatte.cs</DependentUpon>
|
<DependentUpon>Gambatte.cs</DependentUpon>
|
||||||
</Compile>
|
</Compile>
|
||||||
|
<Compile Include="Consoles\Nintendo\Gameboy\Gambatte.ILinkable.cs">
|
||||||
|
<DependentUpon>Gambatte.cs</DependentUpon>
|
||||||
|
</Compile>
|
||||||
<Compile Include="Consoles\Nintendo\Gameboy\Gambatte.IMemoryDomains.cs">
|
<Compile Include="Consoles\Nintendo\Gameboy\Gambatte.IMemoryDomains.cs">
|
||||||
<DependentUpon>Gambatte.cs</DependentUpon>
|
<DependentUpon>Gambatte.cs</DependentUpon>
|
||||||
</Compile>
|
</Compile>
|
||||||
|
@ -1311,4 +1314,4 @@
|
||||||
<Target Name="AfterBuild">
|
<Target Name="AfterBuild">
|
||||||
</Target>
|
</Target>
|
||||||
-->
|
-->
|
||||||
</Project>
|
</Project>
|
|
@ -0,0 +1,15 @@
|
||||||
|
using System;
|
||||||
|
using System.Collections.Generic;
|
||||||
|
using System.Linq;
|
||||||
|
using System.Text;
|
||||||
|
using System.Threading.Tasks;
|
||||||
|
|
||||||
|
using BizHawk.Emulation.Common;
|
||||||
|
|
||||||
|
namespace BizHawk.Emulation.Cores.Nintendo.Gameboy
|
||||||
|
{
|
||||||
|
public partial class Gameboy : ILinkable
|
||||||
|
{
|
||||||
|
public bool LinkConnected { get; private set; }
|
||||||
|
}
|
||||||
|
}
|
|
@ -19,7 +19,7 @@ namespace BizHawk.Emulation.Cores.Nintendo.Gameboy
|
||||||
[ServiceNotApplicable(typeof(IDriveLight), typeof(IDriveLight))]
|
[ServiceNotApplicable(typeof(IDriveLight), typeof(IDriveLight))]
|
||||||
public partial class Gameboy : IEmulator, IVideoProvider, ISoundProvider, ISaveRam, IStatable, IInputPollable, ICodeDataLogger,
|
public partial class Gameboy : IEmulator, IVideoProvider, ISoundProvider, ISaveRam, IStatable, IInputPollable, ICodeDataLogger,
|
||||||
IBoardInfo, IDebuggable, ISettable<Gameboy.GambatteSettings, Gameboy.GambatteSyncSettings>,
|
IBoardInfo, IDebuggable, ISettable<Gameboy.GambatteSettings, Gameboy.GambatteSyncSettings>,
|
||||||
IGameboyCommon, ICycleTiming
|
IGameboyCommon, ICycleTiming, ILinkable
|
||||||
{
|
{
|
||||||
[CoreConstructor("GB", "GBC")]
|
[CoreConstructor("GB", "GBC")]
|
||||||
public Gameboy(CoreComm comm, GameInfo game, byte[] file, object settings, object syncSettings, bool deterministic)
|
public Gameboy(CoreComm comm, GameInfo game, byte[] file, object settings, object syncSettings, bool deterministic)
|
||||||
|
@ -513,9 +513,11 @@ namespace BizHawk.Emulation.Cores.Nintendo.Gameboy
|
||||||
if (callback != null)
|
if (callback != null)
|
||||||
{
|
{
|
||||||
printer = new GambattePrinter(this, callback);
|
printer = new GambattePrinter(this, callback);
|
||||||
|
LinkConnected = true;
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
|
LinkConnected = false;
|
||||||
printer.Disconnect();
|
printer.Disconnect();
|
||||||
printer = null;
|
printer = null;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue