TAStudio - header editor

This commit is contained in:
adelikat 2014-07-11 02:31:43 +00:00
parent 27736edaae
commit ee7831178a
10 changed files with 563 additions and 25 deletions

View File

@ -19,7 +19,14 @@ namespace BizHawk.Client.Common
public string SyncSettingsJson
{
get { return _syncSettingsJson; }
set { _syncSettingsJson = value; }
set
{
if (_syncSettingsJson != value)
{
Changes = true;
_syncSettingsJson = value;
}
}
}
public ulong Rerecords
@ -36,7 +43,11 @@ namespace BizHawk.Client.Common
set
{
Header[HeaderKeys.RERECORDS] = value.ToString();
if (Header[HeaderKeys.RERECORDS] != value.ToString())
{
Changes = true;
Header[HeaderKeys.RERECORDS] = value.ToString();
}
}
}
@ -79,7 +90,11 @@ namespace BizHawk.Client.Common
set
{
Header[HeaderKeys.GAMENAME] = value;
if (Header[HeaderKeys.GAMENAME] != value)
{
Changes = true;
Header[HeaderKeys.GAMENAME] = value;
}
}
}
@ -97,50 +112,90 @@ namespace BizHawk.Client.Common
set
{
Header[HeaderKeys.PLATFORM] = value;
if (Header[HeaderKeys.PLATFORM] != value)
{
Changes = true;
Header[HeaderKeys.PLATFORM] = value;
}
}
}
public string Hash
{
get { return Header[HeaderKeys.SHA1]; }
set { Header[HeaderKeys.SHA1] = value; }
set
{
if (Header[HeaderKeys.SHA1] != value)
{
Changes = true;
Header[HeaderKeys.SHA1] = value;
}
}
}
public string Author
{
get { return Header[HeaderKeys.AUTHOR]; }
set { Header[HeaderKeys.AUTHOR] = value; }
set
{
if (Header[HeaderKeys.AUTHOR] != value)
{
Changes = true;
Header[HeaderKeys.AUTHOR] = value;
}
}
}
public string Core
{
get { return Header[HeaderKeys.CORE]; }
set { Header[HeaderKeys.CORE] = value; }
}
public string Platform
{
get { return Header[HeaderKeys.PLATFORM]; }
set { Header[HeaderKeys.PLATFORM] = value; }
set
{
if (Header[HeaderKeys.CORE] != value)
{
Changes = true;
Header[HeaderKeys.CORE] = value;
}
}
}
public string BoardName
{
get { return Header[HeaderKeys.BOARDNAME]; }
set { Header[HeaderKeys.BOARDNAME] = value; }
set
{
if (Header[HeaderKeys.BOARDNAME] != value)
{
Changes = true;
Header[HeaderKeys.BOARDNAME] = value;
}
}
}
public string EmulatorVersion
{
get { return Header[HeaderKeys.EMULATIONVERSION]; }
set { Header[HeaderKeys.EMULATIONVERSION] = value; }
set
{
if (Header[HeaderKeys.EMULATIONVERSION] != value)
{
Changes = true;
Header[HeaderKeys.EMULATIONVERSION] = value;
}
}
}
public string FirmwareHash
{
get { return Header[HeaderKeys.FIRMWARESHA1]; }
set { Header[HeaderKeys.FIRMWARESHA1] = value; }
set
{
if (Header[HeaderKeys.FIRMWARESHA1] != value)
{
Changes = true;
Header[HeaderKeys.FIRMWARESHA1] = value;
}
}
}
private int? LoopOffset

View File

@ -70,12 +70,6 @@ namespace BizHawk.Client.Common
set { Header[HeaderKeys.CORE] = value; }
}
public string Platform
{
get { return Header[HeaderKeys.PLATFORM]; }
set { Header[HeaderKeys.PLATFORM] = value; }
}
public string BoardName
{
get { return Header[HeaderKeys.BOARDNAME]; }

View File

@ -83,7 +83,7 @@ namespace BizHawk.Client.Common.MovieConversionExtensions
{
movie.Author = author ?? Global.Config.DefaultAuthor;
movie.EmulatorVersion = VersionInfo.GetEmuVersion();
movie.Platform = Global.Game.System;
movie.SystemID = Global.Game.System;
movie.SyncSettingsJson = ConfigService.SaveWithType(Global.Emulator.GetSyncSettings());

View File

@ -58,7 +58,6 @@ namespace BizHawk.Client.Common
string Hash { get; set; }
string Author { get; set; }
string Core { get; set; }
string Platform { get; set; }
string EmulatorVersion { get; set; }
string FirmwareHash { get; set; }
string BoardName { get; set; }

View File

@ -823,6 +823,12 @@
<Compile Include="tools\TAStudio\BookmarksBranchesBox.Designer.cs">
<DependentUpon>BookmarksBranchesBox.cs</DependentUpon>
</Compile>
<Compile Include="tools\TAStudio\HeaderEditor.cs">
<SubType>Form</SubType>
</Compile>
<Compile Include="tools\TAStudio\HeaderEditor.Designer.cs">
<DependentUpon>HeaderEditor.cs</DependentUpon>
</Compile>
<Compile Include="tools\TAStudio\HistoryBox.cs">
<SubType>UserControl</SubType>
</Compile>
@ -1246,6 +1252,9 @@
<EmbeddedResource Include="tools\TAStudio\BookmarksBranchesBox.resx">
<DependentUpon>BookmarksBranchesBox.cs</DependentUpon>
</EmbeddedResource>
<EmbeddedResource Include="tools\TAStudio\HeaderEditor.resx">
<DependentUpon>HeaderEditor.cs</DependentUpon>
</EmbeddedResource>
<EmbeddedResource Include="tools\TAStudio\HistoryBox.resx">
<DependentUpon>HistoryBox.cs</DependentUpon>
</EmbeddedResource>

View File

@ -0,0 +1,258 @@
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Drawing;
using System.Data;
using System.Linq;
using System.Text;
using System.Windows.Forms;
namespace BizHawk.Client.EmuHawk
{
public partial class MovieHeaderEditor
{
/// <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);
}
/// <summary>
/// Required method for Designer support - do not modify
/// the contents of this method with the code editor.
/// </summary>
private void InitializeComponent()
{
System.ComponentModel.ComponentResourceManager resources = new System.ComponentModel.ComponentResourceManager(typeof(MovieHeaderEditor));
this.CancelBtn = new System.Windows.Forms.Button();
this.OkBtn = new System.Windows.Forms.Button();
this.AuthorTextBox = new System.Windows.Forms.TextBox();
this.label1 = new System.Windows.Forms.Label();
this.DefaultAuthorButton = new System.Windows.Forms.Button();
this.MakeDefaultCheckbox = new System.Windows.Forms.CheckBox();
this.label2 = new System.Windows.Forms.Label();
this.EmulatorVersionTextBox = new System.Windows.Forms.TextBox();
this.PlatformTextBox = new System.Windows.Forms.TextBox();
this.label3 = new System.Windows.Forms.Label();
this.CoreTextBox = new System.Windows.Forms.TextBox();
this.label4 = new System.Windows.Forms.Label();
this.BoardNameTextBox = new System.Windows.Forms.TextBox();
this.label5 = new System.Windows.Forms.Label();
this.GameNameTextBox = new System.Windows.Forms.TextBox();
this.label6 = new System.Windows.Forms.Label();
this.SuspendLayout();
//
// CancelBtn
//
this.CancelBtn.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Right)));
this.CancelBtn.DialogResult = System.Windows.Forms.DialogResult.Cancel;
this.CancelBtn.Location = new System.Drawing.Point(249, 238);
this.CancelBtn.Name = "CancelBtn";
this.CancelBtn.Size = new System.Drawing.Size(60, 23);
this.CancelBtn.TabIndex = 0;
this.CancelBtn.Text = "&Cancel";
this.CancelBtn.UseVisualStyleBackColor = true;
this.CancelBtn.Click += new System.EventHandler(this.CancelBtn_Click);
//
// OkBtn
//
this.OkBtn.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Right)));
this.OkBtn.Location = new System.Drawing.Point(183, 238);
this.OkBtn.Name = "OkBtn";
this.OkBtn.Size = new System.Drawing.Size(60, 23);
this.OkBtn.TabIndex = 1;
this.OkBtn.Text = "&Ok";
this.OkBtn.UseVisualStyleBackColor = true;
this.OkBtn.Click += new System.EventHandler(this.OkBtn_Click);
//
// AuthorTextBox
//
this.AuthorTextBox.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Left)
| System.Windows.Forms.AnchorStyles.Right)));
this.AuthorTextBox.Location = new System.Drawing.Point(90, 20);
this.AuthorTextBox.Name = "AuthorTextBox";
this.AuthorTextBox.Size = new System.Drawing.Size(162, 20);
this.AuthorTextBox.TabIndex = 2;
//
// label1
//
this.label1.AutoSize = true;
this.label1.Location = new System.Drawing.Point(12, 20);
this.label1.Name = "label1";
this.label1.Size = new System.Drawing.Size(38, 13);
this.label1.TabIndex = 3;
this.label1.Text = "Author";
//
// DefaultAuthorButton
//
this.DefaultAuthorButton.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right)));
this.DefaultAuthorButton.Location = new System.Drawing.Point(258, 19);
this.DefaultAuthorButton.Name = "DefaultAuthorButton";
this.DefaultAuthorButton.Size = new System.Drawing.Size(51, 23);
this.DefaultAuthorButton.TabIndex = 4;
this.DefaultAuthorButton.Text = "Default";
this.DefaultAuthorButton.UseVisualStyleBackColor = true;
this.DefaultAuthorButton.Click += new System.EventHandler(this.DefaultAuthorButton_Click);
//
// MakeDefaultCheckbox
//
this.MakeDefaultCheckbox.AutoSize = true;
this.MakeDefaultCheckbox.Location = new System.Drawing.Point(108, 43);
this.MakeDefaultCheckbox.Name = "MakeDefaultCheckbox";
this.MakeDefaultCheckbox.Size = new System.Drawing.Size(88, 17);
this.MakeDefaultCheckbox.TabIndex = 5;
this.MakeDefaultCheckbox.Text = "Make default";
this.MakeDefaultCheckbox.UseVisualStyleBackColor = true;
//
// label2
//
this.label2.AutoSize = true;
this.label2.Location = new System.Drawing.Point(12, 80);
this.label2.Name = "label2";
this.label2.Size = new System.Drawing.Size(66, 13);
this.label2.TabIndex = 6;
this.label2.Text = "Emu Version";
//
// EmulatorVersionTextBox
//
this.EmulatorVersionTextBox.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Left)
| System.Windows.Forms.AnchorStyles.Right)));
this.EmulatorVersionTextBox.Location = new System.Drawing.Point(90, 76);
this.EmulatorVersionTextBox.Name = "EmulatorVersionTextBox";
this.EmulatorVersionTextBox.Size = new System.Drawing.Size(162, 20);
this.EmulatorVersionTextBox.TabIndex = 7;
//
// PlatformTextBox
//
this.PlatformTextBox.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Left)
| System.Windows.Forms.AnchorStyles.Right)));
this.PlatformTextBox.Location = new System.Drawing.Point(90, 106);
this.PlatformTextBox.Name = "PlatformTextBox";
this.PlatformTextBox.Size = new System.Drawing.Size(162, 20);
this.PlatformTextBox.TabIndex = 8;
//
// label3
//
this.label3.AutoSize = true;
this.label3.Location = new System.Drawing.Point(12, 110);
this.label3.Name = "label3";
this.label3.Size = new System.Drawing.Size(45, 13);
this.label3.TabIndex = 9;
this.label3.Text = "Platform";
//
// CoreTextBox
//
this.CoreTextBox.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Left)
| System.Windows.Forms.AnchorStyles.Right)));
this.CoreTextBox.Location = new System.Drawing.Point(90, 136);
this.CoreTextBox.Name = "CoreTextBox";
this.CoreTextBox.Size = new System.Drawing.Size(162, 20);
this.CoreTextBox.TabIndex = 10;
//
// label4
//
this.label4.AutoSize = true;
this.label4.Location = new System.Drawing.Point(12, 140);
this.label4.Name = "label4";
this.label4.Size = new System.Drawing.Size(29, 13);
this.label4.TabIndex = 11;
this.label4.Text = "Core";
//
// BoardNameTextBox
//
this.BoardNameTextBox.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Left)
| System.Windows.Forms.AnchorStyles.Right)));
this.BoardNameTextBox.Location = new System.Drawing.Point(90, 166);
this.BoardNameTextBox.Name = "BoardNameTextBox";
this.BoardNameTextBox.Size = new System.Drawing.Size(162, 20);
this.BoardNameTextBox.TabIndex = 12;
//
// label5
//
this.label5.AutoSize = true;
this.label5.Location = new System.Drawing.Point(12, 170);
this.label5.Name = "label5";
this.label5.Size = new System.Drawing.Size(64, 13);
this.label5.TabIndex = 13;
this.label5.Text = "Board name";
//
// GameNameTextBox
//
this.GameNameTextBox.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Left)
| System.Windows.Forms.AnchorStyles.Right)));
this.GameNameTextBox.Location = new System.Drawing.Point(90, 196);
this.GameNameTextBox.Name = "GameNameTextBox";
this.GameNameTextBox.Size = new System.Drawing.Size(162, 20);
this.GameNameTextBox.TabIndex = 14;
//
// label6
//
this.label6.AutoSize = true;
this.label6.Location = new System.Drawing.Point(12, 200);
this.label6.Name = "label6";
this.label6.Size = new System.Drawing.Size(64, 13);
this.label6.TabIndex = 15;
this.label6.Text = "Game name";
//
// MovieHeaderEditor
//
this.AcceptButton = this.OkBtn;
this.CancelButton = this.CancelBtn;
this.ClientSize = new System.Drawing.Size(321, 273);
this.Controls.Add(this.label6);
this.Controls.Add(this.GameNameTextBox);
this.Controls.Add(this.label5);
this.Controls.Add(this.BoardNameTextBox);
this.Controls.Add(this.label4);
this.Controls.Add(this.CoreTextBox);
this.Controls.Add(this.label3);
this.Controls.Add(this.PlatformTextBox);
this.Controls.Add(this.EmulatorVersionTextBox);
this.Controls.Add(this.label2);
this.Controls.Add(this.MakeDefaultCheckbox);
this.Controls.Add(this.DefaultAuthorButton);
this.Controls.Add(this.label1);
this.Controls.Add(this.AuthorTextBox);
this.Controls.Add(this.OkBtn);
this.Controls.Add(this.CancelBtn);
this.Icon = ((System.Drawing.Icon)(resources.GetObject("$this.Icon")));
this.MinimumSize = new System.Drawing.Size(150, 311);
this.Name = "MovieHeaderEditor";
this.StartPosition = System.Windows.Forms.FormStartPosition.CenterParent;
this.Text = "Header Info";
this.Load += new System.EventHandler(this.MovieHeaderEditor_Load);
this.ResumeLayout(false);
this.PerformLayout();
}
private Button CancelBtn;
private Button OkBtn;
private TextBox AuthorTextBox;
private Label label1;
private Button DefaultAuthorButton;
private CheckBox MakeDefaultCheckbox;
private Label label2;
private TextBox EmulatorVersionTextBox;
private TextBox PlatformTextBox;
private Label label3;
private TextBox CoreTextBox;
private Label label4;
private TextBox BoardNameTextBox;
private Label label5;
private TextBox GameNameTextBox;
private Label label6;
}
}

View File

@ -0,0 +1,62 @@
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Drawing;
using System.Data;
using System.Linq;
using System.Text;
using System.Windows.Forms;
using BizHawk.Client.Common;
namespace BizHawk.Client.EmuHawk
{
public partial class MovieHeaderEditor : Form
{
private readonly IMovie Movie;
public MovieHeaderEditor(IMovie movie)
{
Movie = movie;
InitializeComponent();
}
private void MovieHeaderEditor_Load(object sender, EventArgs e)
{
AuthorTextBox.Text = Movie.Author;
EmulatorVersionTextBox.Text = Movie.EmulatorVersion;
PlatformTextBox.Text = Movie.SystemID;
CoreTextBox.Text = Movie.Core;
BoardNameTextBox.Text = Movie.BoardName;
GameNameTextBox.Text = Movie.GameName;
}
private void OkBtn_Click(object sender, EventArgs e)
{
Movie.Author = AuthorTextBox.Text;
if (MakeDefaultCheckbox.Checked)
{
Global.Config.DefaultAuthor = AuthorTextBox.Text;
}
Movie.EmulatorVersion = EmulatorVersionTextBox.Text;
Movie.SystemID = PlatformTextBox.Text;
Movie.Core = CoreTextBox.Text;
Movie.BoardName = BoardNameTextBox.Text;
Movie.GameName = GameNameTextBox.Text;
DialogResult = DialogResult.OK;
Close();
}
private void CancelBtn_Click(object sender, EventArgs e)
{
DialogResult = DialogResult.Cancel;
Close();
}
private void DefaultAuthorButton_Click(object sender, EventArgs e)
{
AuthorTextBox.Text = Global.Config.DefaultAuthor;
}
}
}

View File

@ -0,0 +1,149 @@
<?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=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
</resheader>
<resheader name="writer">
<value>System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
</resheader>
<assembly alias="System.Drawing" name="System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a" />
<data name="$this.Icon" type="System.Drawing.Icon, System.Drawing" mimetype="application/x-microsoft.net.object.bytearray.base64">
<value>
AAABAAEAEBAAAAAAAABoBQAAFgAAACgAAAAQAAAAIAAAAAEACAAAAAAAQAEAAAAAAAAAAAAAAAAAAAAA
AAAAAAAA////AP64aABQUFAAwNjwAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA
AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA
AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA
AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA
AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA
AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA
AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA
AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA
AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA
AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA
AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA
AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA
AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA
AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA
AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA
AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA
AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA
AAAAAAAAAAMDAAMDAwAAAAAAAAAAAAMCAgMDAwMDAwAAAAMDAAADAgICAwMDAwMDAwMCAgMAAAMCAwMD
AwMDAwMDAgIDAAMEBAQDAgMDAwMDAwICAgMDBAQEAwICAwQDAwQDAgIDAAMDAwICAgMCAgIDAwMDAAAA
AwICAgMCAgIDAgMAAAAAAAAAAwMEBAQEBAQCAwAAAAAAAwMEBAQDAwMDAwMAAAAAAwQEAwMEBAMEBAQC
AwAAAAMEBAMDBAMEBAQEAgMAAAAAAwMDBAQDBAMDAwIDAAAAAAMCAgICAgICAgMEBAMAAAAAAwICAgIC
AwMEBAQDAAAAAAADAwMDAwAAAwMDAJH/AAAAcwAAAAEAAIABAAAAAAAAAAAAAIABAADABwAA8AMAAOAD
AADAAQAAwAEAAOABAADgAAAA8AAAAPgxAAA=
</value>
</data>
</root>

View File

@ -583,10 +583,10 @@ namespace BizHawk.Client.EmuHawk
//
// HeaderMenuItem
//
this.HeaderMenuItem.Enabled = false;
this.HeaderMenuItem.Name = "HeaderMenuItem";
this.HeaderMenuItem.Size = new System.Drawing.Size(152, 22);
this.HeaderMenuItem.Text = "&Header...";
this.HeaderMenuItem.Click += new System.EventHandler(this.HeaderMenuItem_Click);
//
// CommentsMenuItem
//

View File

@ -274,6 +274,11 @@ namespace BizHawk.Client.EmuHawk
Owner = Global.Config.TAStudioSettings.FloatingWindow ? null : GlobalWin.MainForm;
}
private void UpdateChangesIndicator()
{
// TODO
}
#region Events
#region File Menu
@ -384,6 +389,13 @@ namespace BizHawk.Client.EmuHawk
#region Metadata
private void HeaderMenuItem_Click(object sender, EventArgs e)
{
new MovieHeaderEditor(_tas).Show();
UpdateChangesIndicator();
}
private void CommentsMenuItem_Click(object sender, EventArgs e)
{
var form = new EditCommentsForm();