Add IDebuggable to relevant cores and remove non-implementations of GetCpuFlagsAndRegisters/SetCpuRegister

This commit is contained in:
jlennox 2014-10-18 22:30:06 +00:00
parent 01a994fe9c
commit 10b6bed056
26 changed files with 18 additions and 94 deletions

View File

@ -86,13 +86,6 @@ namespace BizHawk.Emulation.Common
public void Dispose() { }
public Dictionary<string, int> GetCpuFlagsAndRegisters()
{
return new Dictionary<string, int>();
}
public void SetCpuRegister(string register, int value) { }
bool xmas;
Pleg pleg;

View File

@ -19,7 +19,7 @@ namespace BizHawk.Emulation.Cores.Calculators
isPorted: false,
isReleased: true
)]
public class TI83 : IEmulator, IMemoryDomains
public class TI83 : IEmulator, IMemoryDomains, IDebuggable
{
//hardware
private readonly Z80A cpu = new Z80A();

View File

@ -12,7 +12,7 @@ namespace BizHawk.Emulation.Cores.Computers.Commodore64
PAL
}
sealed public partial class C64 : IEmulator
sealed public partial class C64 : IEmulator, IDebuggable
{
private Motherboard board;
private bool loadPrg;

View File

@ -15,7 +15,7 @@ namespace BizHawk.Emulation.Cores.Atari.Atari2600
isPorted: false,
isReleased: true
)]
public partial class Atari2600 : IEmulator, IMemoryDomains
public partial class Atari2600 : IEmulator, IMemoryDomains, IDebuggable
{
private readonly GameInfo _game;
private bool _islag = true;

View File

@ -16,7 +16,7 @@ namespace BizHawk.Emulation.Cores.Atari.Atari7800
portedVersion: "v1.5",
portedUrl: "http://emu7800.sourceforge.net/"
)]
public partial class Atari7800 : IEmulator, IMemoryDomains
public partial class Atari7800 : IEmulator, IMemoryDomains, IDebuggable
{
// TODO:
// some things don't work when you try to plug in a 2600 game

View File

@ -163,15 +163,6 @@ namespace BizHawk.Emulation.Cores.Atari.Lynx
#region debugging
public Dictionary<string, int> GetCpuFlagsAndRegisters()
{
return new Dictionary<string, int>();
}
public void SetCpuRegister(string register, int value)
{
}
#endregion
#region Controller

View File

@ -17,7 +17,7 @@ namespace BizHawk.Emulation.Cores.ColecoVision
isPorted: false,
isReleased: true
)]
public sealed partial class ColecoVision : IEmulator, IMemoryDomains
public sealed partial class ColecoVision : IEmulator, IMemoryDomains, IDebuggable
{
// ROM
public byte[] RomData;

View File

@ -23,16 +23,6 @@ namespace BizHawk.Emulation.Cores.Intellivision
STIC Stic;
PSG Psg;
public Dictionary<string, int> GetCpuFlagsAndRegisters()
{
throw new NotImplementedException();
}
public void SetCpuRegister(string register, int value)
{
throw new NotImplementedException();
}
public void Connect()
{
Cpu.SetIntRM(Stic.GetSr1());

View File

@ -14,7 +14,7 @@ namespace BizHawk.Emulation.Cores.Nintendo.GBA
isPorted: true,
isReleased: false
)]
public class GBA : IEmulator, IVideoProvider, ISyncSoundProvider, IGBAGPUViewable, IMemoryDomains
public class GBA : IEmulator, IVideoProvider, ISyncSoundProvider, IGBAGPUViewable, IMemoryDomains, IDebuggable
{
public Dictionary<string, int> GetCpuFlagsAndRegisters()
{

View File

@ -14,7 +14,7 @@ using BizHawk.Common;
namespace BizHawk.Emulation.Cores.Nintendo.GBA
{
[CoreAttributes("VBA-Next", "many authors", true, true, "cd508312a29ed8c29dacac1b11c2dce56c338a54", "https://github.com/libretro/vba-next")]
public class VBANext : IEmulator, IVideoProvider, ISyncSoundProvider, IGBAGPUViewable, IMemoryDomains
public class VBANext : IEmulator, IVideoProvider, ISyncSoundProvider, IGBAGPUViewable, IMemoryDomains, IDebuggable
{
IntPtr Core;

View File

@ -22,7 +22,7 @@ namespace BizHawk.Emulation.Cores.Nintendo.Gameboy
portedVersion: "SVN 344",
portedUrl: "http://gambatte.sourceforge.net/"
)]
public class Gameboy : IEmulator, IVideoProvider, ISyncSoundProvider, IMemoryDomains
public class Gameboy : IEmulator, IVideoProvider, ISyncSoundProvider, IMemoryDomains, IDebuggable
{
#region ALL SAVESTATEABLE STATE GOES HERE

View File

@ -17,7 +17,7 @@ namespace BizHawk.Emulation.Cores.Nintendo.Gameboy
isPorted: true,
isReleased: true
)]
public class GambatteLink : IEmulator, IVideoProvider, ISyncSoundProvider
public class GambatteLink : IEmulator, IVideoProvider, ISyncSoundProvider, IDebuggable
{
bool disposed = false;

View File

@ -17,7 +17,7 @@ namespace BizHawk.Emulation.Cores.Nintendo.N64
portedVersion: "2.0",
portedUrl: "https://code.google.com/p/mupen64plus/"
)]
public partial class N64 : IEmulator, IMemoryDomains
public partial class N64 : IEmulator, IMemoryDomains, IDebuggable
{
private readonly N64Input _inputProvider;
private readonly N64VideoProvider _videoProvider;

View File

@ -17,7 +17,7 @@ namespace BizHawk.Emulation.Cores.Nintendo.NES
isPorted: false,
isReleased: true
)]
public partial class NES : IEmulator, IMemoryDomains
public partial class NES : IEmulator, IMemoryDomains, IDebuggable
{
static readonly bool USE_DATABASE = true;
public RomStatus RomStatus;

View File

@ -21,7 +21,7 @@ namespace BizHawk.Emulation.Cores.Consoles.Nintendo.QuickNES
portedVersion: "0.7.0",
portedUrl: "https://github.com/kode54/QuickNES"
)]
public class QuickNES : IEmulator, IVideoProvider, ISyncSoundProvider, IMemoryDomains
public class QuickNES : IEmulator, IVideoProvider, ISyncSoundProvider, IMemoryDomains, IDebuggable
{
#region FPU precision

View File

@ -66,7 +66,7 @@ namespace BizHawk.Emulation.Cores.Nintendo.SNES
portedVersion: "v87",
portedUrl: "http://byuu.org/"
)]
public unsafe class LibsnesCore : IEmulator, IVideoProvider, IMemoryDomains
public unsafe class LibsnesCore : IEmulator, IVideoProvider, IMemoryDomains, IDebuggable
{
public bool IsSGB { get; private set; }

View File

@ -124,16 +124,6 @@ namespace BizHawk.Emulation.Cores.Nintendo.SNES9X
get { throw new NotImplementedException(); }
}
public Dictionary<string, int> GetCpuFlagsAndRegisters()
{
throw new NotImplementedException();
}
public void SetCpuRegister(string register, int value)
{
throw new NotImplementedException();
}
#endregion
#region settings

View File

@ -22,7 +22,7 @@ namespace BizHawk.Emulation.Cores.PCEngine
isPorted: false,
isReleased: true
)]
public sealed partial class PCEngine : IEmulator, IMemoryDomains
public sealed partial class PCEngine : IEmulator, IMemoryDomains, IDebuggable
{
// ROM
public byte[] RomData;

View File

@ -21,7 +21,7 @@ namespace BizHawk.Emulation.Cores.Sega.Genesis
isPorted: false,
isReleased: false
)]
public sealed partial class Genesis : IEmulator, IMemoryDomains
public sealed partial class Genesis : IEmulator, IMemoryDomains, IDebuggable
{
private int _lagcount = 0;
private bool lagged = true;

View File

@ -27,7 +27,7 @@ namespace BizHawk.Emulation.Cores.Sega.MasterSystem
isPorted: false,
isReleased: true
)]
public sealed partial class SMS : IEmulator, IMemoryDomains
public sealed partial class SMS : IEmulator, IMemoryDomains, IDebuggable
{
// Constants
public const int BankSize = 16384;

View File

@ -162,16 +162,6 @@ namespace BizHawk.Emulation.Cores.Sega.Saturn
public IController Controller { get; set; }
public Dictionary<string, int> GetCpuFlagsAndRegisters()
{
throw new NotImplementedException();
}
public void SetCpuRegister(string register, int value)
{
throw new NotImplementedException();
}
public bool GLMode { get; private set; }
public void SetGLRes(int factor, int width, int height)

View File

@ -24,7 +24,7 @@ namespace BizHawk.Emulation.Cores.Consoles.Sega.gpgx
portedVersion: "r874",
portedUrl: "https://code.google.com/p/genplus-gx/"
)]
public class GPGX : IEmulator, ISyncSoundProvider, IVideoProvider, IMemoryDomains
public class GPGX : IEmulator, ISyncSoundProvider, IVideoProvider, IMemoryDomains, IDebuggable
{
static GPGX AttachedCore = null;

View File

@ -62,16 +62,6 @@ namespace BizHawk.Emulation.Cores.Sony.PSP
}
}
public Dictionary<string, int> GetCpuFlagsAndRegisters()
{
throw new NotImplementedException();
}
public void SetCpuRegister(string register, int value)
{
throw new NotImplementedException();
}
bool disposed = false;
static PSP attachedcore = null;
GCHandle vidhandle;

View File

@ -31,16 +31,6 @@ namespace BizHawk.Emulation.Cores.Sony.PSX
public bool StartAsyncSound() { return true; }
public void EndAsyncSound() { }
public Dictionary<string, int> GetCpuFlagsAndRegisters()
{
throw new NotImplementedException();
}
public void SetCpuRegister(string register, int value)
{
throw new NotImplementedException();
}
public static bool CheckIsPSX(DiscSystem.Disc disc)
{
bool ret = false;

View File

@ -12,7 +12,7 @@ using System.Runtime.InteropServices;
namespace BizHawk.Emulation.Cores.WonderSwan
{
[CoreAttributes("Cygne/Mednafen", "Dox", true, true, "0.9.34.1", "http://mednafen.sourceforge.net/")]
public class WonderSwan : IEmulator, IVideoProvider, ISyncSoundProvider, IMemoryDomains
public class WonderSwan : IEmulator, IVideoProvider, ISyncSoundProvider, IMemoryDomains, IDebuggable
{
#region Controller

View File

@ -375,16 +375,6 @@ namespace BizHawk.Emulation.Cores
public MemoryDomainList MemoryDomains { get; private set; }
public Dictionary<string, int> GetCpuFlagsAndRegisters()
{
throw new NotImplementedException();
}
public void SetCpuRegister(string register, int value)
{
throw new NotImplementedException();
}
#endregion
public void Dispose()