2014-04-22 00:38:59 +00:00
|
|
|
|
using System;
|
|
|
|
|
|
|
|
|
|
namespace BizHawk.Emulation.Common
|
|
|
|
|
{
|
2014-12-13 02:31:31 +00:00
|
|
|
|
[AttributeUsage(AttributeTargets.Class)]
|
2020-02-18 15:10:24 +00:00
|
|
|
|
public sealed class CoreAttribute : Attribute
|
2014-04-22 00:38:59 +00:00
|
|
|
|
{
|
2020-02-18 15:10:24 +00:00
|
|
|
|
public CoreAttribute(string name, string author, bool isPorted, bool isReleased, string portedVersion, string portedUrl, bool singleInstance)
|
2014-04-22 00:38:59 +00:00
|
|
|
|
{
|
|
|
|
|
CoreName = name;
|
2014-04-25 01:19:57 +00:00
|
|
|
|
Author = author;
|
|
|
|
|
Ported = isPorted;
|
|
|
|
|
Released = isReleased;
|
2020-02-18 15:10:24 +00:00
|
|
|
|
PortedVersion = portedVersion ?? string.Empty;
|
|
|
|
|
PortedUrl = portedUrl ?? string.Empty;
|
2015-03-03 00:23:50 +00:00
|
|
|
|
SingleInstance = singleInstance;
|
2014-04-22 00:38:59 +00:00
|
|
|
|
}
|
|
|
|
|
|
2020-02-18 15:10:24 +00:00
|
|
|
|
public CoreAttribute(string name, string author, bool isPorted, bool isReleased)
|
|
|
|
|
: this(name, author, isPorted, isReleased, null, null, false) {}
|
|
|
|
|
|
2019-10-29 18:59:08 +00:00
|
|
|
|
public string CoreName { get; }
|
|
|
|
|
public string Author { get; }
|
|
|
|
|
public bool Ported { get; }
|
|
|
|
|
public bool Released { get; }
|
|
|
|
|
public string PortedVersion { get; }
|
|
|
|
|
public string PortedUrl { get; }
|
|
|
|
|
public bool SingleInstance { get; }
|
2014-04-22 00:38:59 +00:00
|
|
|
|
}
|
|
|
|
|
}
|