From adc3e96ca8a92c2ceecf7dc0ab920d4c0b4d43e2 Mon Sep 17 00:00:00 2001 From: goyuken Date: Tue, 3 Mar 2015 00:23:50 +0000 Subject: [PATCH] iemulator single instance attribute. to find out about: PSX, Apple2 --- BizHawk.Emulation.Common/CoreAttributes.cs | 5 ++++- BizHawk.Emulation.Cores/Consoles/Nintendo/GBA/Meteor.cs | 3 ++- BizHawk.Emulation.Cores/Consoles/Nintendo/N64/N64.cs | 3 ++- BizHawk.Emulation.Cores/Consoles/Nintendo/SNES9X/Snes9x.cs | 2 +- BizHawk.Emulation.Cores/Consoles/Sega/Saturn/Yabause.cs | 3 ++- BizHawk.Emulation.Cores/Consoles/Sega/gpgx/GPGX.cs | 3 ++- BizHawk.Emulation.Cores/Consoles/Sony/PSP/PSP.cs | 3 ++- 7 files changed, 15 insertions(+), 7 deletions(-) diff --git a/BizHawk.Emulation.Common/CoreAttributes.cs b/BizHawk.Emulation.Common/CoreAttributes.cs index e37a264185..94c4873b3a 100644 --- a/BizHawk.Emulation.Common/CoreAttributes.cs +++ b/BizHawk.Emulation.Common/CoreAttributes.cs @@ -11,7 +11,8 @@ namespace BizHawk.Emulation.Common bool isPorted = false, bool isReleased = false, string portedVersion = "", - string portedUrl = "") + string portedUrl = "", + bool singleInstance = false) { CoreName = name; Author = author; @@ -19,6 +20,7 @@ namespace BizHawk.Emulation.Common Released = isReleased; PortedVersion = portedVersion; PortedUrl = portedUrl; + SingleInstance = singleInstance; } public string CoreName { get; private set; } @@ -27,5 +29,6 @@ namespace BizHawk.Emulation.Common public bool Released { get; private set; } public string PortedVersion { get; private set; } public string PortedUrl { get; private set; } + public bool SingleInstance { get; private set; } } } diff --git a/BizHawk.Emulation.Cores/Consoles/Nintendo/GBA/Meteor.cs b/BizHawk.Emulation.Cores/Consoles/Nintendo/GBA/Meteor.cs index f6965f9844..6fec417758 100644 --- a/BizHawk.Emulation.Cores/Consoles/Nintendo/GBA/Meteor.cs +++ b/BizHawk.Emulation.Cores/Consoles/Nintendo/GBA/Meteor.cs @@ -12,7 +12,8 @@ namespace BizHawk.Emulation.Cores.Nintendo.GBA "Meteor", "blastrock", isPorted: true, - isReleased: false + isReleased: false, + singleInstance: true )] [ServiceNotApplicable(typeof(IDriveLight))] public partial class GBA : IEmulator, IVideoProvider, ISyncSoundProvider, IGBAGPUViewable, ISaveRam, IStatable, IInputPollable diff --git a/BizHawk.Emulation.Cores/Consoles/Nintendo/N64/N64.cs b/BizHawk.Emulation.Cores/Consoles/Nintendo/N64/N64.cs index dad320ffe1..1e04f16981 100644 --- a/BizHawk.Emulation.Cores/Consoles/Nintendo/N64/N64.cs +++ b/BizHawk.Emulation.Cores/Consoles/Nintendo/N64/N64.cs @@ -16,7 +16,8 @@ namespace BizHawk.Emulation.Cores.Nintendo.N64 isPorted: true, isReleased: true, portedVersion: "2.0", - portedUrl: "https://code.google.com/p/mupen64plus/" + portedUrl: "https://code.google.com/p/mupen64plus/", + singleInstance: true )] [ServiceNotApplicable(typeof(IDriveLight))] public partial class N64 : IEmulator, ISaveRam, IDebuggable, IStatable, IInputPollable, IDisassemblable, diff --git a/BizHawk.Emulation.Cores/Consoles/Nintendo/SNES9X/Snes9x.cs b/BizHawk.Emulation.Cores/Consoles/Nintendo/SNES9X/Snes9x.cs index 67c88b2e76..e8815b9695 100644 --- a/BizHawk.Emulation.Cores/Consoles/Nintendo/SNES9X/Snes9x.cs +++ b/BizHawk.Emulation.Cores/Consoles/Nintendo/SNES9X/Snes9x.cs @@ -9,7 +9,7 @@ using BizHawk.Emulation.Common; namespace BizHawk.Emulation.Cores.Nintendo.SNES9X { - [CoreAttributes("Snes9x", "FIXME", true, false, "5e0319ab3ef9611250efb18255186d0dc0d7e125", "https://github.com/snes9xgit/snes9x")] + [CoreAttributes("Snes9x", "FIXME", true, false, "5e0319ab3ef9611250efb18255186d0dc0d7e125", "https://github.com/snes9xgit/snes9x", true)] [ServiceNotApplicable(typeof(IDriveLight))] public class Snes9x : IEmulator, IVideoProvider, ISyncSoundProvider { diff --git a/BizHawk.Emulation.Cores/Consoles/Sega/Saturn/Yabause.cs b/BizHawk.Emulation.Cores/Consoles/Sega/Saturn/Yabause.cs index 24a7584de4..e2006028ce 100644 --- a/BizHawk.Emulation.Cores/Consoles/Sega/Saturn/Yabause.cs +++ b/BizHawk.Emulation.Cores/Consoles/Sega/Saturn/Yabause.cs @@ -21,7 +21,8 @@ namespace BizHawk.Emulation.Cores.Sega.Saturn isPorted: true, isReleased: true, portedVersion: "9.12", - portedUrl: "http://yabause.org" + portedUrl: "http://yabause.org", + singleInstance: true )] public partial class Yabause : IEmulator, IVideoProvider, ISyncSoundProvider, ISaveRam, IStatable, IInputPollable, ISettable, IDriveLight diff --git a/BizHawk.Emulation.Cores/Consoles/Sega/gpgx/GPGX.cs b/BizHawk.Emulation.Cores/Consoles/Sega/gpgx/GPGX.cs index a20cbe29b3..e6debdb901 100644 --- a/BizHawk.Emulation.Cores/Consoles/Sega/gpgx/GPGX.cs +++ b/BizHawk.Emulation.Cores/Consoles/Sega/gpgx/GPGX.cs @@ -22,7 +22,8 @@ namespace BizHawk.Emulation.Cores.Consoles.Sega.gpgx isPorted: true, isReleased: true, portedVersion: "r874", - portedUrl: "https://code.google.com/p/genplus-gx/" + portedUrl: "https://code.google.com/p/genplus-gx/", + singleInstance: true )] public class GPGX : IEmulator, ISyncSoundProvider, IVideoProvider, ISaveRam, IStatable, IInputPollable, IDebuggable, ISettable, IDriveLight diff --git a/BizHawk.Emulation.Cores/Consoles/Sony/PSP/PSP.cs b/BizHawk.Emulation.Cores/Consoles/Sony/PSP/PSP.cs index fdf00a9f97..b5773eca58 100644 --- a/BizHawk.Emulation.Cores/Consoles/Sony/PSP/PSP.cs +++ b/BizHawk.Emulation.Cores/Consoles/Sony/PSP/PSP.cs @@ -12,7 +12,8 @@ namespace BizHawk.Emulation.Cores.Sony.PSP "PPSSPP", "hrydgard", isPorted: true, - isReleased: false + isReleased: false, + singleInstance: true )] public class PSP : IEmulator, IVideoProvider, ISyncSoundProvider {