Add a ToolAttributes.cs class, right now it just has a released flag, mark a few tools as unreleased, eventually there's code that will take advantage of this flag

This commit is contained in:
adelikat 2014-12-16 23:33:07 +00:00
parent b3923283d2
commit 03e92ce883
4 changed files with 19 additions and 0 deletions

View File

@ -614,6 +614,7 @@
<DependentUpon>RomStatusPicker.cs</DependentUpon>
</Compile>
<Compile Include="Throttle.cs" />
<Compile Include="ToolAttributes.cs" />
<Compile Include="tools\Atari2600\Atari2600Debugger.cs">
<SubType>Form</SubType>
</Compile>

View File

@ -0,0 +1,16 @@
using System;
using System.Drawing;
namespace BizHawk.Client.EmuHawk
{
[AttributeUsage(AttributeTargets.Class)]
public class ToolAttributes : Attribute
{
public ToolAttributes(bool released)
{
Released = released;
}
public bool Released { get; private set; }
}
}

View File

@ -13,6 +13,7 @@ using BizHawk.Emulation.Common;
namespace BizHawk.Client.EmuHawk
{
[ToolAttributes(released: false)]
public partial class Atari2600Debugger : Form, IToolForm
{
// TODO:

View File

@ -13,6 +13,7 @@ using BizHawk.Client.Common;
namespace BizHawk.Client.EmuHawk
{
[ToolAttributes(released: false)]
public partial class GenericDebugger : Form, IToolForm, IControlMainform
{
private int _defaultWidth;