IEmulator now has a string type so that emulators can return a string representing the platform they emulate
This commit is contained in:
parent
2369634572
commit
48bb648ff9
|
@ -27,6 +27,10 @@ namespace BizHawk.Emulation.Consoles.Calculator
|
||||||
bool m_CursorMoved;
|
bool m_CursorMoved;
|
||||||
//-------
|
//-------
|
||||||
|
|
||||||
|
public string type
|
||||||
|
{
|
||||||
|
get { return "TI83"; }
|
||||||
|
}
|
||||||
|
|
||||||
public byte ReadMemory(ushort addr)
|
public byte ReadMemory(ushort addr)
|
||||||
{
|
{
|
||||||
|
|
|
@ -2,6 +2,11 @@
|
||||||
{
|
{
|
||||||
public partial class Gameboy
|
public partial class Gameboy
|
||||||
{
|
{
|
||||||
|
public string type
|
||||||
|
{
|
||||||
|
get { return "GB"; }
|
||||||
|
}
|
||||||
|
|
||||||
public static readonly ControllerDefinition GbController = new ControllerDefinition
|
public static readonly ControllerDefinition GbController = new ControllerDefinition
|
||||||
{
|
{
|
||||||
Name = "Gameboy Controller",
|
Name = "Gameboy Controller",
|
||||||
|
|
|
@ -9,6 +9,11 @@
|
||||||
// (ie, the IOBuffer)
|
// (ie, the IOBuffer)
|
||||||
// However, I believe more fixes will be made in the future, and SF2 works, so this is not
|
// However, I believe more fixes will be made in the future, and SF2 works, so this is not
|
||||||
// currently a priority.
|
// currently a priority.
|
||||||
|
|
||||||
|
public string type
|
||||||
|
{
|
||||||
|
get { return "PCE"; }
|
||||||
|
}
|
||||||
|
|
||||||
private byte SF2MapperLatch;
|
private byte SF2MapperLatch;
|
||||||
|
|
||||||
|
|
|
@ -10,6 +10,11 @@ namespace BizHawk.Emulation.Consoles.Sega
|
||||||
{
|
{
|
||||||
public sealed partial class Genesis : IEmulator, IMemoryController
|
public sealed partial class Genesis : IEmulator, IMemoryController
|
||||||
{
|
{
|
||||||
|
public string type
|
||||||
|
{
|
||||||
|
get { return "GEN"; }
|
||||||
|
}
|
||||||
|
|
||||||
// ROM
|
// ROM
|
||||||
public byte[] RomData;
|
public byte[] RomData;
|
||||||
|
|
||||||
|
|
|
@ -13,6 +13,11 @@
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
||||||
|
public string type
|
||||||
|
{
|
||||||
|
get { return "SMS"; }
|
||||||
|
}
|
||||||
|
|
||||||
public ControllerDefinition ControllerDefinition { get { return SmsController; } }
|
public ControllerDefinition ControllerDefinition { get { return SmsController; } }
|
||||||
public IController Controller { get; set; }
|
public IController Controller { get; set; }
|
||||||
|
|
||||||
|
|
|
@ -6,6 +6,11 @@ namespace BizHawk
|
||||||
{
|
{
|
||||||
public class NullEmulator : IEmulator, IVideoProvider, ISoundProvider
|
public class NullEmulator : IEmulator, IVideoProvider, ISoundProvider
|
||||||
{
|
{
|
||||||
|
public string type
|
||||||
|
{
|
||||||
|
get { return "NULL"; }
|
||||||
|
}
|
||||||
|
|
||||||
private static readonly ControllerDefinition NullController = new ControllerDefinition { Name = "Null Controller" };
|
private static readonly ControllerDefinition NullController = new ControllerDefinition { Name = "Null Controller" };
|
||||||
|
|
||||||
private int[] frameBuffer = new int[256 * 192];
|
private int[] frameBuffer = new int[256 * 192];
|
||||||
|
|
|
@ -12,6 +12,8 @@ namespace BizHawk
|
||||||
ControllerDefinition ControllerDefinition { get; }
|
ControllerDefinition ControllerDefinition { get; }
|
||||||
IController Controller { get; set; }
|
IController Controller { get; set; }
|
||||||
|
|
||||||
|
string type { get; }
|
||||||
|
|
||||||
void LoadGame(IGame game);
|
void LoadGame(IGame game);
|
||||||
void FrameAdvance(bool render);
|
void FrameAdvance(bool render);
|
||||||
|
|
||||||
|
|
|
@ -251,6 +251,11 @@ namespace BizHawk.MultiClient
|
||||||
//TODO: If movie loaded use that frame counter, and also display total movie frame count if read-only
|
//TODO: If movie loaded use that frame counter, and also display total movie frame count if read-only
|
||||||
if (Global.Config.DisplayFrameCounter)
|
if (Global.Config.DisplayFrameCounter)
|
||||||
MessageFont.DrawString(null, Global.Emulator.Frame.ToString(), 1, 1, new Color4(Color.White)); //TODO: Allow user to set screen coordinates?
|
MessageFont.DrawString(null, Global.Emulator.Frame.ToString(), 1, 1, new Color4(Color.White)); //TODO: Allow user to set screen coordinates?
|
||||||
|
|
||||||
|
if (Global.Config.DisplayInput)
|
||||||
|
{
|
||||||
|
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
private List<UIMessage> messages = new List<UIMessage>(5);
|
private List<UIMessage> messages = new List<UIMessage>(5);
|
||||||
|
|
Loading…
Reference in New Issue