-
Notifications
You must be signed in to change notification settings - Fork 384
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
16 changed files
with
242 additions
and
316 deletions.
There are no files selected for viewing
73 changes: 16 additions & 57 deletions
73
BizHawk.Client.ApiHawk/Attributes/BizHawkExternalToolAttribute.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,67 +1,26 @@ | ||
using System; | ||
|
||
using BizHawk.Client.Common; | ||
|
||
namespace BizHawk.Client.ApiHawk | ||
{ | ||
/// <summary> | ||
/// This class holds logic interaction for the ExternalToolAttribute | ||
/// This attribute helps BizHawk to handle ExternalTools | ||
/// </summary> | ||
/// <remarks>This class needs to be in the assembly or old tools will throw on load instead of being recognised as old.</remarks> | ||
[AttributeUsage(AttributeTargets.Assembly)] | ||
[Obsolete("last used in 2.4, use [ExternalTool] instead")] | ||
public sealed class BizHawkExternalToolAttribute : Attribute | ||
{ | ||
#region cTor(s) | ||
|
||
/// <summary> | ||
/// Initialize a new instance of <see cref="BizHawkExternalToolAttribute"/> | ||
/// </summary> | ||
/// <param name="name">Tool's name</param> | ||
/// <param name="description">Small description about the tool itself</param> | ||
/// <param name="iconResourceName">Icon embedded resource name</param> | ||
public BizHawkExternalToolAttribute(string name, string description, string iconResourceName) | ||
{ | ||
Name = name; | ||
Description = description; | ||
IconResourceName = iconResourceName; | ||
} | ||
|
||
/// <summary> | ||
/// Initialize a new instance of <see cref="BizHawkExternalToolAttribute"/> | ||
/// </summary> | ||
/// <param name="name">Tool's name</param> | ||
/// <param name="description">Small description about the tool itself</param> | ||
public BizHawkExternalToolAttribute(string name, string description) | ||
: this(name, description, "") | ||
{ } | ||
|
||
/// <summary> | ||
/// Initialize a new instance of <see cref="BizHawkExternalToolAttribute"/> | ||
/// </summary> | ||
/// <param name="name">Tool's name</param> | ||
public BizHawkExternalToolAttribute(string name) | ||
:this(name, "", "") | ||
{} | ||
|
||
#endregion | ||
|
||
#region Properties | ||
|
||
/// <summary> | ||
/// Gets tool's friendly name | ||
/// </summary> | ||
public string Name { get; } | ||
|
||
/// <summary> | ||
/// Gets tool's description | ||
/// </summary> | ||
public string Description { get; } | ||
|
||
|
||
/// <summary> | ||
/// Get the name of the embedded resource icon | ||
/// </summary> | ||
/// <remarks>Don't forget to set compile => Embedded resource to the icon file in your project</remarks> | ||
public string IconResourceName { get; } | ||
public BizHawkExternalToolAttribute(string name, string description, string iconResourceName) {} | ||
public BizHawkExternalToolAttribute(string name, string description) {} | ||
public BizHawkExternalToolAttribute(string name) {} | ||
} | ||
|
||
#endregion | ||
/// <inheritdoc cref="BizHawkExternalToolAttribute"/> | ||
[AttributeUsage(AttributeTargets.Assembly)] | ||
[Obsolete("last used in 2.4, use [ExternalToolApplicability.*] instead")] | ||
public sealed class BizHawkExternalToolUsageAttribute : Attribute | ||
{ | ||
public BizHawkExternalToolUsageAttribute(BizHawkExternalToolUsage usage, CoreSystem system, string gameHash) {} | ||
public BizHawkExternalToolUsageAttribute(BizHawkExternalToolUsage usage, CoreSystem system) {} | ||
public BizHawkExternalToolUsageAttribute() {} | ||
} | ||
} |
75 changes: 0 additions & 75 deletions
75
BizHawk.Client.ApiHawk/Attributes/BizHawkExternalToolUsageAttribute.cs
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.