Add Executable and Nintendo plugins
This commit is contained in:
parent
5d4b771210
commit
da967f41e3
@ -0,0 +1,45 @@
|
||||
namespace UniversalEditor.Editors.Executable
|
||||
{
|
||||
partial class ExecutableEditor
|
||||
{
|
||||
/// <summary>
|
||||
/// Required designer variable.
|
||||
/// </summary>
|
||||
private System.ComponentModel.IContainer components = null;
|
||||
|
||||
/// <summary>
|
||||
/// Clean up any resources being used.
|
||||
/// </summary>
|
||||
/// <param name="disposing">true if managed resources should be disposed; otherwise, false.</param>
|
||||
protected override void Dispose(bool disposing)
|
||||
{
|
||||
if (disposing && (components != null))
|
||||
{
|
||||
components.Dispose();
|
||||
}
|
||||
base.Dispose(disposing);
|
||||
}
|
||||
|
||||
#region Component Designer generated code
|
||||
|
||||
/// <summary>
|
||||
/// Required method for Designer support - do not modify
|
||||
/// the contents of this method with the code editor.
|
||||
/// </summary>
|
||||
private void InitializeComponent()
|
||||
{
|
||||
this.SuspendLayout();
|
||||
//
|
||||
// ExecutableEditor
|
||||
//
|
||||
this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 13F);
|
||||
this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
|
||||
this.Name = "ExecutableEditor";
|
||||
this.Size = new System.Drawing.Size(502, 247);
|
||||
this.ResumeLayout(false);
|
||||
|
||||
}
|
||||
|
||||
#endregion
|
||||
}
|
||||
}
|
||||
@ -0,0 +1,18 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.ComponentModel;
|
||||
using System.Drawing;
|
||||
using System.Linq;
|
||||
using System.Text;
|
||||
using System.Windows.Forms;
|
||||
|
||||
namespace UniversalEditor.Editors.Executable
|
||||
{
|
||||
public partial class ExecutableEditor : UserControl
|
||||
{
|
||||
public ExecutableEditor()
|
||||
{
|
||||
InitializeComponent();
|
||||
}
|
||||
}
|
||||
}
|
||||
@ -0,0 +1,120 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<root>
|
||||
<!--
|
||||
Microsoft ResX Schema
|
||||
|
||||
Version 2.0
|
||||
|
||||
The primary goals of this format is to allow a simple XML format
|
||||
that is mostly human readable. The generation and parsing of the
|
||||
various data types are done through the TypeConverter classes
|
||||
associated with the data types.
|
||||
|
||||
Example:
|
||||
|
||||
... ado.net/XML headers & schema ...
|
||||
<resheader name="resmimetype">text/microsoft-resx</resheader>
|
||||
<resheader name="version">2.0</resheader>
|
||||
<resheader name="reader">System.Resources.ResXResourceReader, System.Windows.Forms, ...</resheader>
|
||||
<resheader name="writer">System.Resources.ResXResourceWriter, System.Windows.Forms, ...</resheader>
|
||||
<data name="Name1"><value>this is my long string</value><comment>this is a comment</comment></data>
|
||||
<data name="Color1" type="System.Drawing.Color, System.Drawing">Blue</data>
|
||||
<data name="Bitmap1" mimetype="application/x-microsoft.net.object.binary.base64">
|
||||
<value>[base64 mime encoded serialized .NET Framework object]</value>
|
||||
</data>
|
||||
<data name="Icon1" type="System.Drawing.Icon, System.Drawing" mimetype="application/x-microsoft.net.object.bytearray.base64">
|
||||
<value>[base64 mime encoded string representing a byte array form of the .NET Framework object]</value>
|
||||
<comment>This is a comment</comment>
|
||||
</data>
|
||||
|
||||
There are any number of "resheader" rows that contain simple
|
||||
name/value pairs.
|
||||
|
||||
Each data row contains a name, and value. The row also contains a
|
||||
type or mimetype. Type corresponds to a .NET class that support
|
||||
text/value conversion through the TypeConverter architecture.
|
||||
Classes that don't support this are serialized and stored with the
|
||||
mimetype set.
|
||||
|
||||
The mimetype is used for serialized objects, and tells the
|
||||
ResXResourceReader how to depersist the object. This is currently not
|
||||
extensible. For a given mimetype the value must be set accordingly:
|
||||
|
||||
Note - application/x-microsoft.net.object.binary.base64 is the format
|
||||
that the ResXResourceWriter will generate, however the reader can
|
||||
read any of the formats listed below.
|
||||
|
||||
mimetype: application/x-microsoft.net.object.binary.base64
|
||||
value : The object must be serialized with
|
||||
: System.Runtime.Serialization.Formatters.Binary.BinaryFormatter
|
||||
: and then encoded with base64 encoding.
|
||||
|
||||
mimetype: application/x-microsoft.net.object.soap.base64
|
||||
value : The object must be serialized with
|
||||
: System.Runtime.Serialization.Formatters.Soap.SoapFormatter
|
||||
: and then encoded with base64 encoding.
|
||||
|
||||
mimetype: application/x-microsoft.net.object.bytearray.base64
|
||||
value : The object must be serialized into a byte array
|
||||
: using a System.ComponentModel.TypeConverter
|
||||
: and then encoded with base64 encoding.
|
||||
-->
|
||||
<xsd:schema id="root" xmlns="" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:msdata="urn:schemas-microsoft-com:xml-msdata">
|
||||
<xsd:import namespace="http://www.w3.org/XML/1998/namespace" />
|
||||
<xsd:element name="root" msdata:IsDataSet="true">
|
||||
<xsd:complexType>
|
||||
<xsd:choice maxOccurs="unbounded">
|
||||
<xsd:element name="metadata">
|
||||
<xsd:complexType>
|
||||
<xsd:sequence>
|
||||
<xsd:element name="value" type="xsd:string" minOccurs="0" />
|
||||
</xsd:sequence>
|
||||
<xsd:attribute name="name" use="required" type="xsd:string" />
|
||||
<xsd:attribute name="type" type="xsd:string" />
|
||||
<xsd:attribute name="mimetype" type="xsd:string" />
|
||||
<xsd:attribute ref="xml:space" />
|
||||
</xsd:complexType>
|
||||
</xsd:element>
|
||||
<xsd:element name="assembly">
|
||||
<xsd:complexType>
|
||||
<xsd:attribute name="alias" type="xsd:string" />
|
||||
<xsd:attribute name="name" type="xsd:string" />
|
||||
</xsd:complexType>
|
||||
</xsd:element>
|
||||
<xsd:element name="data">
|
||||
<xsd:complexType>
|
||||
<xsd:sequence>
|
||||
<xsd:element name="value" type="xsd:string" minOccurs="0" msdata:Ordinal="1" />
|
||||
<xsd:element name="comment" type="xsd:string" minOccurs="0" msdata:Ordinal="2" />
|
||||
</xsd:sequence>
|
||||
<xsd:attribute name="name" type="xsd:string" use="required" msdata:Ordinal="1" />
|
||||
<xsd:attribute name="type" type="xsd:string" msdata:Ordinal="3" />
|
||||
<xsd:attribute name="mimetype" type="xsd:string" msdata:Ordinal="4" />
|
||||
<xsd:attribute ref="xml:space" />
|
||||
</xsd:complexType>
|
||||
</xsd:element>
|
||||
<xsd:element name="resheader">
|
||||
<xsd:complexType>
|
||||
<xsd:sequence>
|
||||
<xsd:element name="value" type="xsd:string" minOccurs="0" msdata:Ordinal="1" />
|
||||
</xsd:sequence>
|
||||
<xsd:attribute name="name" type="xsd:string" use="required" />
|
||||
</xsd:complexType>
|
||||
</xsd:element>
|
||||
</xsd:choice>
|
||||
</xsd:complexType>
|
||||
</xsd:element>
|
||||
</xsd:schema>
|
||||
<resheader name="resmimetype">
|
||||
<value>text/microsoft-resx</value>
|
||||
</resheader>
|
||||
<resheader name="version">
|
||||
<value>2.0</value>
|
||||
</resheader>
|
||||
<resheader name="reader">
|
||||
<value>System.Resources.ResXResourceReader, System.Windows.Forms, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
|
||||
</resheader>
|
||||
<resheader name="writer">
|
||||
<value>System.Resources.ResXResourceWriter, System.Windows.Forms, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
|
||||
</resheader>
|
||||
</root>
|
||||
@ -0,0 +1,36 @@
|
||||
using System.Reflection;
|
||||
using System.Runtime.CompilerServices;
|
||||
using System.Runtime.InteropServices;
|
||||
|
||||
// General Information about an assembly is controlled through the following
|
||||
// set of attributes. Change these attribute values to modify the information
|
||||
// associated with an assembly.
|
||||
[assembly: AssemblyTitle("UniversalEditor.Plugins.Executable.UserInterface.WindowsForms")]
|
||||
[assembly: AssemblyDescription("")]
|
||||
[assembly: AssemblyConfiguration("")]
|
||||
[assembly: AssemblyCompany("City of Orlando")]
|
||||
[assembly: AssemblyProduct("UniversalEditor.Plugins.Executable.UserInterface.WindowsForms")]
|
||||
[assembly: AssemblyCopyright("Copyright © City of Orlando 2013")]
|
||||
[assembly: AssemblyTrademark("")]
|
||||
[assembly: AssemblyCulture("")]
|
||||
|
||||
// Setting ComVisible to false makes the types in this assembly not visible
|
||||
// to COM components. If you need to access a type in this assembly from
|
||||
// COM, set the ComVisible attribute to true on that type.
|
||||
[assembly: ComVisible(false)]
|
||||
|
||||
// The following GUID is for the ID of the typelib if this project is exposed to COM
|
||||
[assembly: Guid("7c391036-c29b-497c-8154-e04234f0ff26")]
|
||||
|
||||
// Version information for an assembly consists of the following four values:
|
||||
//
|
||||
// Major Version
|
||||
// Minor Version
|
||||
// Build Number
|
||||
// Revision
|
||||
//
|
||||
// You can specify all the values or you can default the Build and Revision Numbers
|
||||
// by using the '*' as shown below:
|
||||
// [assembly: AssemblyVersion("1.0.*")]
|
||||
[assembly: AssemblyVersion("1.0.0.0")]
|
||||
[assembly: AssemblyFileVersion("1.0.0.0")]
|
||||
@ -0,0 +1,60 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<Project ToolsVersion="4.0" DefaultTargets="Build" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
|
||||
<Import Project="$(MSBuildExtensionsPath)\$(MSBuildToolsVersion)\Microsoft.Common.props" Condition="Exists('$(MSBuildExtensionsPath)\$(MSBuildToolsVersion)\Microsoft.Common.props')" />
|
||||
<PropertyGroup>
|
||||
<Configuration Condition=" '$(Configuration)' == '' ">Debug</Configuration>
|
||||
<Platform Condition=" '$(Platform)' == '' ">AnyCPU</Platform>
|
||||
<ProjectGuid>{EE70D9BB-52FB-4BF5-A704-06F4881301CF}</ProjectGuid>
|
||||
<OutputType>Library</OutputType>
|
||||
<AppDesignerFolder>Properties</AppDesignerFolder>
|
||||
<RootNamespace>UniversalEditor</RootNamespace>
|
||||
<AssemblyName>UniversalEditor.Plugins.Executable.UserInterface.WindowsForms</AssemblyName>
|
||||
<TargetFrameworkVersion>v3.5</TargetFrameworkVersion>
|
||||
<FileAlignment>512</FileAlignment>
|
||||
</PropertyGroup>
|
||||
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' ">
|
||||
<DebugSymbols>true</DebugSymbols>
|
||||
<DebugType>full</DebugType>
|
||||
<Optimize>false</Optimize>
|
||||
<OutputPath>..\..\..\..\Output\Debug\Plugins\</OutputPath>
|
||||
<DefineConstants>DEBUG;TRACE</DefineConstants>
|
||||
<ErrorReport>prompt</ErrorReport>
|
||||
<WarningLevel>4</WarningLevel>
|
||||
</PropertyGroup>
|
||||
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|AnyCPU' ">
|
||||
<DebugType>pdbonly</DebugType>
|
||||
<Optimize>true</Optimize>
|
||||
<OutputPath>..\..\..\..\Output\Release\Plugins\</OutputPath>
|
||||
<DefineConstants>TRACE</DefineConstants>
|
||||
<ErrorReport>prompt</ErrorReport>
|
||||
<WarningLevel>4</WarningLevel>
|
||||
</PropertyGroup>
|
||||
<ItemGroup>
|
||||
<Reference Include="System" />
|
||||
<Reference Include="System.Core" />
|
||||
<Reference Include="System.Drawing" />
|
||||
<Reference Include="System.Windows.Forms" />
|
||||
</ItemGroup>
|
||||
<ItemGroup>
|
||||
<Compile Include="Editors\Executable\ExecutableEditor.cs">
|
||||
<SubType>UserControl</SubType>
|
||||
</Compile>
|
||||
<Compile Include="Editors\Executable\ExecutableEditor.Designer.cs">
|
||||
<DependentUpon>ExecutableEditor.cs</DependentUpon>
|
||||
</Compile>
|
||||
<Compile Include="Properties\AssemblyInfo.cs" />
|
||||
</ItemGroup>
|
||||
<ItemGroup>
|
||||
<EmbeddedResource Include="Editors\Executable\ExecutableEditor.resx">
|
||||
<DependentUpon>ExecutableEditor.cs</DependentUpon>
|
||||
</EmbeddedResource>
|
||||
</ItemGroup>
|
||||
<Import Project="$(MSBuildToolsPath)\Microsoft.CSharp.targets" />
|
||||
<!-- To modify your build process, add your task inside one of the targets below and uncomment it.
|
||||
Other similar extension points exist, see Microsoft.Common.targets.
|
||||
<Target Name="BeforeBuild">
|
||||
</Target>
|
||||
<Target Name="AfterBuild">
|
||||
</Target>
|
||||
-->
|
||||
</Project>
|
||||
@ -0,0 +1,137 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using System.Text;
|
||||
|
||||
using UniversalEditor.IO;
|
||||
using UniversalEditor.ObjectModels.Executable;
|
||||
|
||||
namespace UniversalEditor.DataFormats.Executable.Nintendo.SNES
|
||||
{
|
||||
public class SMCDataFormat : DataFormat
|
||||
{
|
||||
private static DataFormatReference _dfr = null;
|
||||
public override DataFormatReference MakeReference()
|
||||
{
|
||||
if (_dfr == null)
|
||||
{
|
||||
_dfr = base.MakeReference();
|
||||
_dfr.Capabilities.Add(typeof(ExecutableObjectModel), DataFormatCapabilities.All);
|
||||
_dfr.Filters.Add("Nintendo SNES executable", new string[] { "*.smc", "*.sfc", "*.swc", "*.fig", "*.ufo", "*.?gm" });
|
||||
_dfr.Sources.Add("http://romhack.wikia.com/wiki/SNES_ROM_layout");
|
||||
_dfr.Sources.Add("http://romhack.wikia.com/wiki/SNES_header");
|
||||
_dfr.Sources.Add("http://romhack.wikia.com/wiki/SMC_header");
|
||||
}
|
||||
return _dfr;
|
||||
}
|
||||
|
||||
private SMCExtendedHeader mvarExtendedHeader = new SMCExtendedHeader();
|
||||
public SMCExtendedHeader ExtendedHeader { get { return mvarExtendedHeader; } }
|
||||
|
||||
protected override void LoadInternal(ref ObjectModel objectModel)
|
||||
{
|
||||
ExecutableObjectModel exe = (objectModel as ExecutableObjectModel);
|
||||
if (exe == null) throw new ObjectModelNotSupportedException();
|
||||
|
||||
Reader reader = base.Accessor.Reader;
|
||||
|
||||
mvarExtendedHeader.Enabled = (base.Accessor.Length % 1024 == 512);
|
||||
if (mvarExtendedHeader.Enabled)
|
||||
{
|
||||
#region 00-02 The size of the ROM dump, in units of 8 kilobytes, as a little-endian integer.
|
||||
{
|
||||
mvarExtendedHeader.FileSize = reader.ReadInt16();
|
||||
mvarExtendedHeader.FileSize *= 8000;
|
||||
}
|
||||
#endregion
|
||||
#region 02-03 Flags
|
||||
byte flags = reader.ReadByte();
|
||||
mvarExtendedHeader.SplitFile = ((flags & 0x40) == 0x40);
|
||||
mvarExtendedHeader.HiRomEnabled = ((flags & 0x30) == 0x30);
|
||||
|
||||
if ((flags & 0x04) == 0x04)
|
||||
{
|
||||
mvarExtendedHeader.SaveRAMSize = SMCSaveRAMSize.SaveRAM8K;
|
||||
}
|
||||
else if ((flags & 0x08) == 0x08)
|
||||
{
|
||||
mvarExtendedHeader.SaveRAMSize = SMCSaveRAMSize.SaveRAM2K;
|
||||
}
|
||||
else if ((flags & 0x0C) == 0x0C)
|
||||
{
|
||||
mvarExtendedHeader.SaveRAMSize = SMCSaveRAMSize.SaveRAMNone;
|
||||
}
|
||||
|
||||
if ((flags & 0x80) == 0x80)
|
||||
{
|
||||
mvarExtendedHeader.ResetVectorOverride = 0x8000;
|
||||
}
|
||||
#endregion
|
||||
#region 03-04 HiRom/LoRom (Pro Fighter specific)
|
||||
byte hiRomLoRom = reader.ReadByte();
|
||||
if ((flags & 0x30) != 0x30)
|
||||
{
|
||||
// only set HiRom/LoRom from this field if not set in a flag
|
||||
mvarExtendedHeader.HiRomEnabled = ((hiRomLoRom & 0x80) == 0x80);
|
||||
}
|
||||
#endregion
|
||||
#region 04-06 DSP-1 settings (Pro Fighter specific)
|
||||
mvarExtendedHeader.DSP1Settings = reader.ReadInt16();
|
||||
#endregion
|
||||
#region 06-08 Unknown
|
||||
ushort unknown1 = reader.ReadUInt16();
|
||||
#endregion
|
||||
#region 08-16 SUPERUFO
|
||||
string creator = reader.ReadFixedLengthString(8); // SUPERUFO
|
||||
mvarExtendedHeader.Creator = creator;
|
||||
#endregion
|
||||
#region 16-24 Extra data
|
||||
byte[] extradata = reader.ReadBytes(8);
|
||||
#endregion
|
||||
|
||||
if (mvarExtendedHeader.HiRomEnabled)
|
||||
{
|
||||
base.Accessor.Seek(0x101c0, SeekOrigin.Begin);
|
||||
}
|
||||
else
|
||||
{
|
||||
base.Accessor.Seek(0x81c0, SeekOrigin.Begin);
|
||||
}
|
||||
}
|
||||
|
||||
#region SNES header
|
||||
string gamename = reader.ReadFixedLengthString(21).Trim();
|
||||
byte romLayout = reader.ReadByte();
|
||||
if (romLayout == 0x20)
|
||||
{
|
||||
// LoROM
|
||||
}
|
||||
else if (romLayout == 0x21)
|
||||
{
|
||||
// HiROM
|
||||
}
|
||||
byte cartridgeType = reader.ReadByte();
|
||||
byte romsize = reader.ReadByte();
|
||||
byte ramsize = reader.ReadByte();
|
||||
|
||||
// Country code, which selects the video in the emulator. Values $00, $01, $0d use NTSC.
|
||||
// Values in range $02..$0c use PAL. Other values are invalid.
|
||||
byte countryCode = reader.ReadByte();
|
||||
|
||||
// Licensee code. If this value is $33, then the ROM has an extended header with ID at
|
||||
// $ffb2..$ffb5.
|
||||
byte licenseeCode = reader.ReadByte();
|
||||
|
||||
byte versionNumber = reader.ReadByte();
|
||||
#endregion
|
||||
}
|
||||
|
||||
protected override void SaveInternal(ObjectModel objectModel)
|
||||
{
|
||||
ExecutableObjectModel exe = (objectModel as ExecutableObjectModel);
|
||||
if (exe == null) throw new ObjectModelNotSupportedException();
|
||||
|
||||
throw new NotImplementedException();
|
||||
}
|
||||
}
|
||||
}
|
||||
@ -0,0 +1,59 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using System.Text;
|
||||
|
||||
namespace UniversalEditor.DataFormats.Executable.Nintendo.SNES
|
||||
{
|
||||
public class SMCExtendedHeader
|
||||
{
|
||||
private bool mvarEnabled = false;
|
||||
public bool Enabled { get { return mvarEnabled; } set { mvarEnabled = value; } }
|
||||
|
||||
private int mvarFileSize = 0;
|
||||
public int FileSize { get { return mvarFileSize; } set { mvarFileSize = value; } }
|
||||
|
||||
private bool mvarHiRomEnabled = false;
|
||||
/// <summary>
|
||||
/// Determines whether Hi-ROM is enabled.
|
||||
/// </summary>
|
||||
public bool HiRomEnabled { get { return mvarHiRomEnabled; } set { mvarHiRomEnabled = value; } }
|
||||
|
||||
private SMCSaveRAMSize mvarSaveRAMSize = SMCSaveRAMSize.SaveRAM32K;
|
||||
/// <summary>
|
||||
/// Amount of space to allocate for save data.
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// Some headers set the save-RAM size to 32 kilobytes instead of the actual save-RAM
|
||||
/// size. For example, Super Mario World uses 2 kilobytes, but the clean headered ROM of
|
||||
/// SMW has byte $00 (meaning LoROM with 32 kilobytes of save-RAM) at offset 2.
|
||||
/// </remarks>
|
||||
public SMCSaveRAMSize SaveRAMSize { get { return mvarSaveRAMSize; } set { mvarSaveRAMSize = value; } }
|
||||
|
||||
private bool mvarSplitFile = false;
|
||||
/// <summary>
|
||||
/// True if this is a split file, but not the last image.
|
||||
/// </summary>
|
||||
public bool SplitFile { get { return mvarSplitFile; } set { mvarSplitFile = value; } }
|
||||
|
||||
private int mvarResetVectorOverride = -1;
|
||||
/// <summary>
|
||||
/// If non-negative, determines the address to jump to in place of the reset vector.
|
||||
/// </summary>
|
||||
public int ResetVectorOverride { get { return mvarResetVectorOverride; } set { mvarResetVectorOverride = value; } }
|
||||
|
||||
private short mvarDSP1Settings = 0;
|
||||
public short DSP1Settings { get { return mvarDSP1Settings; } set { mvarDSP1Settings = value; } }
|
||||
|
||||
private string mvarCreator = String.Empty;
|
||||
public string Creator
|
||||
{
|
||||
get { return mvarCreator; }
|
||||
set
|
||||
{
|
||||
if (value.Length > 8) throw new ArgumentOutOfRangeException("Value must be less than or equal to 8 characters in length");
|
||||
mvarCreator = value;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
@ -0,0 +1,23 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using System.Text;
|
||||
|
||||
namespace UniversalEditor.DataFormats.Executable.Nintendo.SNES
|
||||
{
|
||||
/// <summary>
|
||||
/// Amount of space to allocate for save data.
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// Some headers set the save-RAM size to 32 kilobytes instead of the actual save-RAM
|
||||
/// size. For example, Super Mario World uses 2 kilobytes, but the clean headered ROM of
|
||||
/// SMW has byte $00 (meaning LoROM with 32 kilobytes of save-RAM) at offset 2.
|
||||
/// </remarks>
|
||||
public enum SMCSaveRAMSize
|
||||
{
|
||||
SaveRAMNone = 0,
|
||||
SaveRAM2K = 2,
|
||||
SaveRAM8K = 8,
|
||||
SaveRAM32K = 32
|
||||
}
|
||||
}
|
||||
@ -0,0 +1,36 @@
|
||||
using System.Reflection;
|
||||
using System.Runtime.CompilerServices;
|
||||
using System.Runtime.InteropServices;
|
||||
|
||||
// General Information about an assembly is controlled through the following
|
||||
// set of attributes. Change these attribute values to modify the information
|
||||
// associated with an assembly.
|
||||
[assembly: AssemblyTitle("UniversalEditor.Plugins.Nintendo")]
|
||||
[assembly: AssemblyDescription("")]
|
||||
[assembly: AssemblyConfiguration("")]
|
||||
[assembly: AssemblyCompany("City of Orlando")]
|
||||
[assembly: AssemblyProduct("UniversalEditor.Plugins.Nintendo")]
|
||||
[assembly: AssemblyCopyright("Copyright © City of Orlando 2014")]
|
||||
[assembly: AssemblyTrademark("")]
|
||||
[assembly: AssemblyCulture("")]
|
||||
|
||||
// Setting ComVisible to false makes the types in this assembly not visible
|
||||
// to COM components. If you need to access a type in this assembly from
|
||||
// COM, set the ComVisible attribute to true on that type.
|
||||
[assembly: ComVisible(false)]
|
||||
|
||||
// The following GUID is for the ID of the typelib if this project is exposed to COM
|
||||
[assembly: Guid("c36be102-9363-4027-abf4-ad4628503de6")]
|
||||
|
||||
// Version information for an assembly consists of the following four values:
|
||||
//
|
||||
// Major Version
|
||||
// Minor Version
|
||||
// Build Number
|
||||
// Revision
|
||||
//
|
||||
// You can specify all the values or you can default the Build and Revision Numbers
|
||||
// by using the '*' as shown below:
|
||||
// [assembly: AssemblyVersion("1.0.*")]
|
||||
[assembly: AssemblyVersion("1.0.0.0")]
|
||||
[assembly: AssemblyFileVersion("1.0.0.0")]
|
||||
@ -0,0 +1,65 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<Project ToolsVersion="4.0" DefaultTargets="Build" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
|
||||
<Import Project="$(MSBuildExtensionsPath)\$(MSBuildToolsVersion)\Microsoft.Common.props" Condition="Exists('$(MSBuildExtensionsPath)\$(MSBuildToolsVersion)\Microsoft.Common.props')" />
|
||||
<PropertyGroup>
|
||||
<Configuration Condition=" '$(Configuration)' == '' ">Debug</Configuration>
|
||||
<Platform Condition=" '$(Platform)' == '' ">AnyCPU</Platform>
|
||||
<ProjectGuid>{E0B0223C-3E44-4D2A-9FED-F1A319D84D39}</ProjectGuid>
|
||||
<OutputType>Library</OutputType>
|
||||
<AppDesignerFolder>Properties</AppDesignerFolder>
|
||||
<RootNamespace>UniversalEditor</RootNamespace>
|
||||
<AssemblyName>UniversalEditor.Plugins.Nintendo</AssemblyName>
|
||||
<TargetFrameworkVersion>v3.5</TargetFrameworkVersion>
|
||||
<FileAlignment>512</FileAlignment>
|
||||
<TargetFrameworkProfile />
|
||||
</PropertyGroup>
|
||||
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' ">
|
||||
<DebugSymbols>true</DebugSymbols>
|
||||
<DebugType>full</DebugType>
|
||||
<Optimize>false</Optimize>
|
||||
<OutputPath>..\..\Output\Debug\Plugins\</OutputPath>
|
||||
<DefineConstants>DEBUG;TRACE</DefineConstants>
|
||||
<ErrorReport>prompt</ErrorReport>
|
||||
<WarningLevel>4</WarningLevel>
|
||||
</PropertyGroup>
|
||||
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|AnyCPU' ">
|
||||
<DebugType>pdbonly</DebugType>
|
||||
<Optimize>true</Optimize>
|
||||
<OutputPath>..\..\Output\Release\Plugins\</OutputPath>
|
||||
<DefineConstants>TRACE</DefineConstants>
|
||||
<ErrorReport>prompt</ErrorReport>
|
||||
<WarningLevel>4</WarningLevel>
|
||||
</PropertyGroup>
|
||||
<ItemGroup>
|
||||
<Reference Include="System" />
|
||||
<Reference Include="System.Core" />
|
||||
</ItemGroup>
|
||||
<ItemGroup>
|
||||
<Compile Include="DataFormats\Executable\Nintendo\SNES\SMCDataFormat.cs" />
|
||||
<Compile Include="DataFormats\Executable\Nintendo\SNES\SMCExtendedHeader.cs" />
|
||||
<Compile Include="DataFormats\Executable\Nintendo\SNES\SMCSaveRAMSize.cs" />
|
||||
<Compile Include="Properties\AssemblyInfo.cs" />
|
||||
</ItemGroup>
|
||||
<ItemGroup>
|
||||
<ProjectReference Include="..\..\Libraries\UniversalEditor.Core\UniversalEditor.Core.csproj">
|
||||
<Project>{2d4737e6-6d95-408a-90db-8dff38147e85}</Project>
|
||||
<Name>UniversalEditor.Core</Name>
|
||||
</ProjectReference>
|
||||
<ProjectReference Include="..\UniversalEditor.Essential\UniversalEditor.Essential.csproj">
|
||||
<Project>{30467e5c-05bc-4856-aadc-13906ef4cadd}</Project>
|
||||
<Name>UniversalEditor.Essential</Name>
|
||||
</ProjectReference>
|
||||
<ProjectReference Include="..\UniversalEditor.Plugins.Executable\UniversalEditor.Plugins.Executable.csproj">
|
||||
<Project>{791a36f8-5d96-452b-89d2-78ba74596a1e}</Project>
|
||||
<Name>UniversalEditor.Plugins.Executable</Name>
|
||||
</ProjectReference>
|
||||
</ItemGroup>
|
||||
<Import Project="$(MSBuildToolsPath)\Microsoft.CSharp.targets" />
|
||||
<!-- To modify your build process, add your task inside one of the targets below and uncomment it.
|
||||
Other similar extension points exist, see Microsoft.Common.targets.
|
||||
<Target Name="BeforeBuild">
|
||||
</Target>
|
||||
<Target Name="AfterBuild">
|
||||
</Target>
|
||||
-->
|
||||
</Project>
|
||||
@ -105,6 +105,12 @@ Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "Content", "Content", "{BC68
|
||||
EndProject
|
||||
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "UniversalEditor.Content.PlatformIndependent", "Content\UniversalEditor.Content.PlatformIndependent\UniversalEditor.Content.PlatformIndependent.csproj", "{A5A14A71-5DB3-4495-92F6-8D27C98FF0F4}"
|
||||
EndProject
|
||||
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "UniversalEditor.Plugins.Nintendo", "Plugins\UniversalEditor.Plugins.Nintendo\UniversalEditor.Plugins.Nintendo.csproj", "{E0B0223C-3E44-4D2A-9FED-F1A319D84D39}"
|
||||
EndProject
|
||||
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "UniversalEditor.Plugins.Executable", "Plugins\UniversalEditor.Plugins.Executable\UniversalEditor.Plugins.Executable.csproj", "{791A36F8-5D96-452B-89D2-78BA74596A1E}"
|
||||
EndProject
|
||||
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "UniversalEditor.Plugins.Executable.UserInterface.WindowsForms", "Engines\WindowsForms\Plugins\UniversalEditor.Plugins.Executable.UserInterface.WindowsForms\UniversalEditor.Plugins.Executable.UserInterface.WindowsForms.csproj", "{EE70D9BB-52FB-4BF5-A704-06F4881301CF}"
|
||||
EndProject
|
||||
Global
|
||||
GlobalSection(SolutionConfigurationPlatforms) = preSolution
|
||||
Debug|Any CPU = Debug|Any CPU
|
||||
@ -275,6 +281,18 @@ Global
|
||||
{A5A14A71-5DB3-4495-92F6-8D27C98FF0F4}.Debug|Any CPU.Build.0 = Debug|Any CPU
|
||||
{A5A14A71-5DB3-4495-92F6-8D27C98FF0F4}.Release|Any CPU.ActiveCfg = Release|Any CPU
|
||||
{A5A14A71-5DB3-4495-92F6-8D27C98FF0F4}.Release|Any CPU.Build.0 = Release|Any CPU
|
||||
{E0B0223C-3E44-4D2A-9FED-F1A319D84D39}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
|
||||
{E0B0223C-3E44-4D2A-9FED-F1A319D84D39}.Debug|Any CPU.Build.0 = Debug|Any CPU
|
||||
{E0B0223C-3E44-4D2A-9FED-F1A319D84D39}.Release|Any CPU.ActiveCfg = Release|Any CPU
|
||||
{E0B0223C-3E44-4D2A-9FED-F1A319D84D39}.Release|Any CPU.Build.0 = Release|Any CPU
|
||||
{791A36F8-5D96-452B-89D2-78BA74596A1E}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
|
||||
{791A36F8-5D96-452B-89D2-78BA74596A1E}.Debug|Any CPU.Build.0 = Debug|Any CPU
|
||||
{791A36F8-5D96-452B-89D2-78BA74596A1E}.Release|Any CPU.ActiveCfg = Release|Any CPU
|
||||
{791A36F8-5D96-452B-89D2-78BA74596A1E}.Release|Any CPU.Build.0 = Release|Any CPU
|
||||
{EE70D9BB-52FB-4BF5-A704-06F4881301CF}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
|
||||
{EE70D9BB-52FB-4BF5-A704-06F4881301CF}.Debug|Any CPU.Build.0 = Debug|Any CPU
|
||||
{EE70D9BB-52FB-4BF5-A704-06F4881301CF}.Release|Any CPU.ActiveCfg = Release|Any CPU
|
||||
{EE70D9BB-52FB-4BF5-A704-06F4881301CF}.Release|Any CPU.Build.0 = Release|Any CPU
|
||||
EndGlobalSection
|
||||
GlobalSection(SolutionProperties) = preSolution
|
||||
HideSolutionNode = FALSE
|
||||
@ -310,6 +328,8 @@ Global
|
||||
{9F1FDC26-5F1C-4C2A-BBBF-3A597A72802D} = {71CFF024-26F7-4626-A526-B435FDF8D64E}
|
||||
{E6C9A73D-4556-4220-9BC7-302A7EE64C1A} = {71CFF024-26F7-4626-A526-B435FDF8D64E}
|
||||
{DF96F24E-FED9-4BAC-8389-63590125DC61} = {71CFF024-26F7-4626-A526-B435FDF8D64E}
|
||||
{E0B0223C-3E44-4D2A-9FED-F1A319D84D39} = {71CFF024-26F7-4626-A526-B435FDF8D64E}
|
||||
{791A36F8-5D96-452B-89D2-78BA74596A1E} = {71CFF024-26F7-4626-A526-B435FDF8D64E}
|
||||
{FE016EA3-DC31-4A92-8B0A-8C746EC117E1} = {46041F27-7C1C-4209-B72B-251EDB5D4C61}
|
||||
{ED627DF7-3E78-4428-AB31-810BA1586E62} = {46041F27-7C1C-4209-B72B-251EDB5D4C61}
|
||||
{C1F34183-7A2F-41A6-9958-F6F329099654} = {A846CA33-9CAA-4237-B14F-8721DBA89442}
|
||||
@ -324,6 +344,7 @@ Global
|
||||
{9B5ABDC3-ADF7-42B7-ADE9-8DC715310492} = {D3CE7A47-3989-4B6D-9867-0EA3C8DD7AB1}
|
||||
{4250B20B-2DC9-432F-B0C2-BD20B80B4970} = {D3CE7A47-3989-4B6D-9867-0EA3C8DD7AB1}
|
||||
{049A3447-14AF-4CAE-BE0E-1C42DD1AB1CB} = {D3CE7A47-3989-4B6D-9867-0EA3C8DD7AB1}
|
||||
{EE70D9BB-52FB-4BF5-A704-06F4881301CF} = {D3CE7A47-3989-4B6D-9867-0EA3C8DD7AB1}
|
||||
{118E40C4-323E-4B4B-8EF4-38EED6CC5E83} = {54990D5E-CE09-459F-916E-AF13101765B4}
|
||||
{A5A14A71-5DB3-4495-92F6-8D27C98FF0F4} = {BC6859FB-B61C-471D-9F84-613E5C388C52}
|
||||
EndGlobalSection
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user