Add IDebuggable to relevant cores and remove non-implementations of GetCpuFlagsAndRegisters/SetCpuRegister
This commit is contained in:
parent
01a994fe9c
commit
10b6bed056
|
@ -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;
|
||||
|
||||
|
|
|
@ -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();
|
||||
|
|
|
@ -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;
|
||||
|
|
|
@ -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;
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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;
|
||||
|
|
|
@ -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());
|
||||
|
|
|
@ -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()
|
||||
{
|
||||
|
|
|
@ -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;
|
||||
|
||||
|
|
|
@ -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
|
||||
|
||||
|
|
|
@ -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;
|
||||
|
||||
|
|
|
@ -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;
|
||||
|
|
|
@ -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;
|
||||
|
|
|
@ -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
|
||||
|
||||
|
|
|
@ -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; }
|
||||
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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;
|
||||
|
|
|
@ -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;
|
||||
|
|
|
@ -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;
|
||||
|
|
|
@ -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)
|
||||
|
|
|
@ -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;
|
||||
|
||||
|
|
|
@ -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;
|
||||
|
|
|
@ -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;
|
||||
|
|
|
@ -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
|
||||
|
||||
|
|
|
@ -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()
|
||||
|
|
Loading…
Reference in New Issue