Gameboy/Game Gear Game Genie Decoder (still non-working code)

This commit is contained in:
masterofpuppets152001 2013-04-24 20:41:23 +00:00
parent b482a4af0b
commit f3a8cee8bc
13 changed files with 1586 additions and 349 deletions

View File

@ -253,6 +253,12 @@
<Compile Include="GBtools\GBGPUView.Designer.cs">
<DependentUpon>GBGPUView.cs</DependentUpon>
</Compile>
<Compile Include="GBtools\GBGameGenie.cs">
<SubType>Form</SubType>
</Compile>
<Compile Include="GBtools\GBGameGenie.Designer.cs">
<DependentUpon>GBGameGenie.cs</DependentUpon>
</Compile>
<Compile Include="Global.cs" />
<Compile Include="HawkFile.cs" />
<Compile Include="HistoryCollection.cs" />
@ -547,6 +553,10 @@
<EmbeddedResource Include="GBtools\GBGPUView.resx">
<DependentUpon>GBGPUView.cs</DependentUpon>
</EmbeddedResource>
<EmbeddedResource Include="GBtools\GBGameGenie.resx">
<DependentUpon>GBGameGenie.cs</DependentUpon>
<SubType>Designer</SubType>
</EmbeddedResource>
<EmbeddedResource Include="MainForm.resx">
<DependentUpon>MainForm.cs</DependentUpon>
<SubType>Designer</SubType>
@ -628,6 +638,7 @@
<EmbeddedResource Include="tools\VirtualPadForm.resx">
<DependentUpon>VirtualPadForm.cs</DependentUpon>
</EmbeddedResource>
<None Include="ClassDiagram1.cd" />
<None Include="Properties\Settings.settings">
<Generator>SettingsSingleFileGenerator</Generator>
<LastGenOutput>Settings.Designer.cs</LastGenOutput>

View File

@ -580,6 +580,12 @@ namespace BizHawk.MultiClient
public int SNESGGWndx = -1;
public int SNESGGWndy = -1;
// GB/GG Game Genie Encoder/Decoder
public bool GBGGAutoload = false;
public bool GBGGSaveWindowPosition = true;
public int GBGGWndx = -1;
public int GBGGWndy = -1;
//Movie Settings
public RecentFiles RecentMovies = new RecentFiles(8);
public bool AutoLoadMostRecentMovie = false;

View File

@ -0,0 +1,563 @@
namespace BizHawk.MultiClient
{
partial class GBGameGenie
{
/// <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 Windows Form 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.GameGenieCode = new System.Windows.Forms.TextBox();
this.GameGenieCodeBox = new System.Windows.Forms.GroupBox();
this.label3 = new System.Windows.Forms.Label();
this.label2 = new System.Windows.Forms.Label();
this.label1 = new System.Windows.Forms.Label();
this.CompareBox = new BizHawk.HexTextBox();
this.ValueBox = new BizHawk.HexTextBox();
this.AddressBox = new BizHawk.HexTextBox();
this.AddCheat = new System.Windows.Forms.Button();
this.ButtonPanel = new System.Windows.Forms.Panel();
this.BF = new System.Windows.Forms.Button();
this.BD = new System.Windows.Forms.Button();
this.BB = new System.Windows.Forms.Button();
this.B9 = new System.Windows.Forms.Button();
this.B7 = new System.Windows.Forms.Button();
this.B5 = new System.Windows.Forms.Button();
this.B3 = new System.Windows.Forms.Button();
this.BE = new System.Windows.Forms.Button();
this.B6 = new System.Windows.Forms.Button();
this.B1 = new System.Windows.Forms.Button();
this.BC = new System.Windows.Forms.Button();
this.BA = new System.Windows.Forms.Button();
this.B8 = new System.Windows.Forms.Button();
this.B4 = new System.Windows.Forms.Button();
this.B2 = new System.Windows.Forms.Button();
this.B0 = new System.Windows.Forms.Button();
this.groupBox1 = new System.Windows.Forms.GroupBox();
this.label6 = new System.Windows.Forms.Label();
this.label5 = new System.Windows.Forms.Label();
this.label4 = new System.Windows.Forms.Label();
this.ClearButton = new System.Windows.Forms.Button();
this.menuStrip1 = new System.Windows.Forms.MenuStrip();
this.optionsToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem();
this.autoloadToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem();
this.saveWindowPositionToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem();
this.toolStripSeparator1 = new System.Windows.Forms.ToolStripSeparator();
this.exitToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem();
this.GameGenieCodeBox.SuspendLayout();
this.ButtonPanel.SuspendLayout();
this.groupBox1.SuspendLayout();
this.menuStrip1.SuspendLayout();
this.SuspendLayout();
//
// GameGenieCode
//
this.GameGenieCode.CharacterCasing = System.Windows.Forms.CharacterCasing.Upper;
this.GameGenieCode.Location = new System.Drawing.Point(8, 23);
this.GameGenieCode.Margin = new System.Windows.Forms.Padding(4);
this.GameGenieCode.MaxLength = 9;
this.GameGenieCode.Name = "GameGenieCode";
this.GameGenieCode.Size = new System.Drawing.Size(113, 22);
this.GameGenieCode.TabIndex = 20;
this.GameGenieCode.TextChanged += new System.EventHandler(this.GameGenieCode_TextChanged);
this.GameGenieCode.KeyDown += new System.Windows.Forms.KeyEventHandler(this.GameGenieCode_KeyDown);
this.GameGenieCode.KeyPress += new System.Windows.Forms.KeyPressEventHandler(this.GameGenieCode_KeyPress);
//
// GameGenieCodeBox
//
this.GameGenieCodeBox.Controls.Add(this.GameGenieCode);
this.GameGenieCodeBox.Location = new System.Drawing.Point(41, 127);
this.GameGenieCodeBox.Margin = new System.Windows.Forms.Padding(4);
this.GameGenieCodeBox.Name = "GameGenieCodeBox";
this.GameGenieCodeBox.Padding = new System.Windows.Forms.Padding(4);
this.GameGenieCodeBox.Size = new System.Drawing.Size(153, 66);
this.GameGenieCodeBox.TabIndex = 1;
this.GameGenieCodeBox.TabStop = false;
this.GameGenieCodeBox.Text = "Game Genie Code";
//
// label3
//
this.label3.AutoSize = true;
this.label3.Location = new System.Drawing.Point(11, 84);
this.label3.Margin = new System.Windows.Forms.Padding(4, 0, 4, 0);
this.label3.Name = "label3";
this.label3.Size = new System.Drawing.Size(44, 17);
this.label3.TabIndex = 5;
this.label3.Text = "Value";
//
// label2
//
this.label2.AutoSize = true;
this.label2.Location = new System.Drawing.Point(11, 52);
this.label2.Margin = new System.Windows.Forms.Padding(4, 0, 4, 0);
this.label2.Name = "label2";
this.label2.Size = new System.Drawing.Size(65, 17);
this.label2.TabIndex = 4;
this.label2.Text = "Compare";
//
// label1
//
this.label1.AutoSize = true;
this.label1.Location = new System.Drawing.Point(11, 20);
this.label1.Margin = new System.Windows.Forms.Padding(4, 0, 4, 0);
this.label1.Name = "label1";
this.label1.Size = new System.Drawing.Size(60, 17);
this.label1.TabIndex = 3;
this.label1.Text = "Address";
//
// CompareBox
//
this.CompareBox.CharacterCasing = System.Windows.Forms.CharacterCasing.Upper;
this.CompareBox.Location = new System.Drawing.Point(116, 48);
this.CompareBox.Margin = new System.Windows.Forms.Padding(4);
this.CompareBox.MaxLength = 2;
this.CompareBox.Name = "CompareBox";
this.CompareBox.RightToLeft = System.Windows.Forms.RightToLeft.Yes;
this.CompareBox.Size = new System.Drawing.Size(35, 22);
this.CompareBox.TabIndex = 22;
this.CompareBox.TextChanged += new System.EventHandler(this.CompareBox_TextChanged);
//
// ValueBox
//
this.ValueBox.CharacterCasing = System.Windows.Forms.CharacterCasing.Upper;
this.ValueBox.Location = new System.Drawing.Point(116, 80);
this.ValueBox.Margin = new System.Windows.Forms.Padding(4);
this.ValueBox.MaxLength = 2;
this.ValueBox.Name = "ValueBox";
this.ValueBox.RightToLeft = System.Windows.Forms.RightToLeft.Yes;
this.ValueBox.Size = new System.Drawing.Size(35, 22);
this.ValueBox.TabIndex = 23;
this.ValueBox.TextChanged += new System.EventHandler(this.ValueBox_TextChanged);
//
// AddressBox
//
this.AddressBox.CharacterCasing = System.Windows.Forms.CharacterCasing.Upper;
this.AddressBox.Location = new System.Drawing.Point(100, 16);
this.AddressBox.Margin = new System.Windows.Forms.Padding(4);
this.AddressBox.MaxLength = 4;
this.AddressBox.Name = "AddressBox";
this.AddressBox.RightToLeft = System.Windows.Forms.RightToLeft.Yes;
this.AddressBox.Size = new System.Drawing.Size(51, 22);
this.AddressBox.TabIndex = 21;
this.AddressBox.TextChanged += new System.EventHandler(this.AddressBox_TextChanged);
//
// AddCheat
//
this.AddCheat.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Right)));
this.AddCheat.Location = new System.Drawing.Point(269, 276);
this.AddCheat.Margin = new System.Windows.Forms.Padding(4);
this.AddCheat.Name = "AddCheat";
this.AddCheat.Size = new System.Drawing.Size(92, 26);
this.AddCheat.TabIndex = 33;
this.AddCheat.Text = "&Add Cheat";
this.AddCheat.UseVisualStyleBackColor = true;
this.AddCheat.Click += new System.EventHandler(this.AddCheat_Click);
//
// ButtonPanel
//
this.ButtonPanel.BorderStyle = System.Windows.Forms.BorderStyle.Fixed3D;
this.ButtonPanel.Controls.Add(this.BF);
this.ButtonPanel.Controls.Add(this.BD);
this.ButtonPanel.Controls.Add(this.BB);
this.ButtonPanel.Controls.Add(this.B9);
this.ButtonPanel.Controls.Add(this.B7);
this.ButtonPanel.Controls.Add(this.B5);
this.ButtonPanel.Controls.Add(this.B3);
this.ButtonPanel.Controls.Add(this.BE);
this.ButtonPanel.Controls.Add(this.B6);
this.ButtonPanel.Controls.Add(this.B1);
this.ButtonPanel.Controls.Add(this.BC);
this.ButtonPanel.Controls.Add(this.BA);
this.ButtonPanel.Controls.Add(this.B8);
this.ButtonPanel.Controls.Add(this.B4);
this.ButtonPanel.Controls.Add(this.B2);
this.ButtonPanel.Controls.Add(this.B0);
this.ButtonPanel.Location = new System.Drawing.Point(41, 37);
this.ButtonPanel.Margin = new System.Windows.Forms.Padding(4);
this.ButtonPanel.Name = "ButtonPanel";
this.ButtonPanel.Size = new System.Drawing.Size(319, 82);
this.ButtonPanel.TabIndex = 4;
//
// BF
//
this.BF.Location = new System.Drawing.Point(275, 43);
this.BF.Margin = new System.Windows.Forms.Padding(4);
this.BF.Name = "BF";
this.BF.Size = new System.Drawing.Size(35, 28);
this.BF.TabIndex = 16;
this.BF.Text = "F";
this.BF.UseVisualStyleBackColor = true;
this.BF.Click += new System.EventHandler(this.Keypad_Click);
//
// BD
//
this.BD.Location = new System.Drawing.Point(199, 43);
this.BD.Margin = new System.Windows.Forms.Padding(4);
this.BD.Name = "BD";
this.BD.Size = new System.Drawing.Size(35, 28);
this.BD.TabIndex = 14;
this.BD.Text = "D";
this.BD.UseVisualStyleBackColor = true;
this.BD.Click += new System.EventHandler(this.Keypad_Click);
//
// BB
//
this.BB.Location = new System.Drawing.Point(121, 43);
this.BB.Margin = new System.Windows.Forms.Padding(4);
this.BB.Name = "BB";
this.BB.Size = new System.Drawing.Size(35, 28);
this.BB.TabIndex = 12;
this.BB.Text = "B";
this.BB.UseVisualStyleBackColor = true;
this.BB.Click += new System.EventHandler(this.Keypad_Click);
//
// B9
//
this.B9.Location = new System.Drawing.Point(45, 43);
this.B9.Margin = new System.Windows.Forms.Padding(4);
this.B9.Name = "B9";
this.B9.Size = new System.Drawing.Size(35, 28);
this.B9.TabIndex = 10;
this.B9.Text = "9";
this.B9.UseVisualStyleBackColor = true;
this.B9.Click += new System.EventHandler(this.Keypad_Click);
//
// B7
//
this.B7.Location = new System.Drawing.Point(275, 6);
this.B7.Margin = new System.Windows.Forms.Padding(4);
this.B7.Name = "B7";
this.B7.Size = new System.Drawing.Size(35, 28);
this.B7.TabIndex = 8;
this.B7.Text = "7";
this.B7.UseVisualStyleBackColor = true;
this.B7.Click += new System.EventHandler(this.Keypad_Click);
//
// B5
//
this.B5.Location = new System.Drawing.Point(199, 7);
this.B5.Margin = new System.Windows.Forms.Padding(4);
this.B5.Name = "B5";
this.B5.Size = new System.Drawing.Size(35, 28);
this.B5.TabIndex = 6;
this.B5.Text = "5";
this.B5.UseVisualStyleBackColor = true;
this.B5.Click += new System.EventHandler(this.Keypad_Click);
//
// B3
//
this.B3.Location = new System.Drawing.Point(121, 7);
this.B3.Margin = new System.Windows.Forms.Padding(4);
this.B3.Name = "B3";
this.B3.Size = new System.Drawing.Size(35, 28);
this.B3.TabIndex = 4;
this.B3.Text = "3";
this.B3.UseVisualStyleBackColor = true;
this.B3.Click += new System.EventHandler(this.Keypad_Click);
//
// BE
//
this.BE.Location = new System.Drawing.Point(237, 43);
this.BE.Margin = new System.Windows.Forms.Padding(4);
this.BE.Name = "BE";
this.BE.Size = new System.Drawing.Size(35, 28);
this.BE.TabIndex = 15;
this.BE.Text = "E";
this.BE.UseVisualStyleBackColor = true;
this.BE.Click += new System.EventHandler(this.Keypad_Click);
//
// B6
//
this.B6.Location = new System.Drawing.Point(237, 6);
this.B6.Margin = new System.Windows.Forms.Padding(4);
this.B6.Name = "B6";
this.B6.Size = new System.Drawing.Size(35, 28);
this.B6.TabIndex = 7;
this.B6.Text = "6";
this.B6.UseVisualStyleBackColor = true;
this.B6.Click += new System.EventHandler(this.Keypad_Click);
//
// B1
//
this.B1.Location = new System.Drawing.Point(45, 7);
this.B1.Margin = new System.Windows.Forms.Padding(4);
this.B1.Name = "B1";
this.B1.Size = new System.Drawing.Size(35, 28);
this.B1.TabIndex = 2;
this.B1.Text = "1";
this.B1.UseVisualStyleBackColor = true;
this.B1.Click += new System.EventHandler(this.Keypad_Click);
//
// BC
//
this.BC.Location = new System.Drawing.Point(161, 43);
this.BC.Margin = new System.Windows.Forms.Padding(4);
this.BC.Name = "BC";
this.BC.Size = new System.Drawing.Size(35, 28);
this.BC.TabIndex = 13;
this.BC.Text = "C";
this.BC.UseVisualStyleBackColor = true;
this.BC.Click += new System.EventHandler(this.Keypad_Click);
//
// BA
//
this.BA.Location = new System.Drawing.Point(84, 43);
this.BA.Margin = new System.Windows.Forms.Padding(4);
this.BA.Name = "BA";
this.BA.Size = new System.Drawing.Size(35, 28);
this.BA.TabIndex = 11;
this.BA.Text = "A";
this.BA.UseVisualStyleBackColor = true;
this.BA.Click += new System.EventHandler(this.Keypad_Click);
//
// B8
//
this.B8.Location = new System.Drawing.Point(8, 43);
this.B8.Margin = new System.Windows.Forms.Padding(4);
this.B8.Name = "B8";
this.B8.Size = new System.Drawing.Size(35, 28);
this.B8.TabIndex = 9;
this.B8.Text = "8";
this.B8.UseVisualStyleBackColor = true;
this.B8.Click += new System.EventHandler(this.Keypad_Click);
//
// B4
//
this.B4.Location = new System.Drawing.Point(161, 7);
this.B4.Margin = new System.Windows.Forms.Padding(4);
this.B4.Name = "B4";
this.B4.Size = new System.Drawing.Size(35, 28);
this.B4.TabIndex = 5;
this.B4.Text = "4";
this.B4.UseVisualStyleBackColor = true;
this.B4.Click += new System.EventHandler(this.Keypad_Click);
//
// B2
//
this.B2.Location = new System.Drawing.Point(84, 7);
this.B2.Margin = new System.Windows.Forms.Padding(4);
this.B2.Name = "B2";
this.B2.Size = new System.Drawing.Size(35, 28);
this.B2.TabIndex = 3;
this.B2.Text = "2";
this.B2.UseVisualStyleBackColor = true;
this.B2.Click += new System.EventHandler(this.Keypad_Click);
//
// B0
//
this.B0.Location = new System.Drawing.Point(8, 6);
this.B0.Margin = new System.Windows.Forms.Padding(4);
this.B0.Name = "B0";
this.B0.Size = new System.Drawing.Size(35, 28);
this.B0.TabIndex = 1;
this.B0.Text = "0";
this.B0.UseVisualStyleBackColor = true;
this.B0.Click += new System.EventHandler(this.Keypad_Click);
//
// groupBox1
//
this.groupBox1.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Left)));
this.groupBox1.Controls.Add(this.label6);
this.groupBox1.Controls.Add(this.label5);
this.groupBox1.Controls.Add(this.label4);
this.groupBox1.Controls.Add(this.label3);
this.groupBox1.Controls.Add(this.label1);
this.groupBox1.Controls.Add(this.label2);
this.groupBox1.Controls.Add(this.AddressBox);
this.groupBox1.Controls.Add(this.ValueBox);
this.groupBox1.Controls.Add(this.CompareBox);
this.groupBox1.Location = new System.Drawing.Point(41, 201);
this.groupBox1.Margin = new System.Windows.Forms.Padding(4);
this.groupBox1.Name = "groupBox1";
this.groupBox1.Padding = new System.Windows.Forms.Padding(4);
this.groupBox1.Size = new System.Drawing.Size(168, 114);
this.groupBox1.TabIndex = 5;
this.groupBox1.TabStop = false;
//
// label6
//
this.label6.AutoSize = true;
this.label6.Location = new System.Drawing.Point(92, 85);
this.label6.Margin = new System.Windows.Forms.Padding(4, 0, 4, 0);
this.label6.Name = "label6";
this.label6.Size = new System.Drawing.Size(22, 17);
this.label6.TabIndex = 9;
this.label6.Text = "0x";
//
// label5
//
this.label5.AutoSize = true;
this.label5.Location = new System.Drawing.Point(92, 52);
this.label5.Margin = new System.Windows.Forms.Padding(4, 0, 4, 0);
this.label5.Name = "label5";
this.label5.Size = new System.Drawing.Size(22, 17);
this.label5.TabIndex = 8;
this.label5.Text = "0x";
//
// label4
//
this.label4.AutoSize = true;
this.label4.Location = new System.Drawing.Point(76, 20);
this.label4.Margin = new System.Windows.Forms.Padding(4, 0, 4, 0);
this.label4.Name = "label4";
this.label4.Size = new System.Drawing.Size(22, 17);
this.label4.TabIndex = 7;
this.label4.Text = "0x";
//
// ClearButton
//
this.ClearButton.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right)));
this.ClearButton.Location = new System.Drawing.Point(288, 201);
this.ClearButton.Margin = new System.Windows.Forms.Padding(4);
this.ClearButton.Name = "ClearButton";
this.ClearButton.Size = new System.Drawing.Size(72, 28);
this.ClearButton.TabIndex = 32;
this.ClearButton.Text = "&Clear";
this.ClearButton.UseVisualStyleBackColor = true;
this.ClearButton.Click += new System.EventHandler(this.ClearButton_Click);
//
// menuStrip1
//
this.menuStrip1.Items.AddRange(new System.Windows.Forms.ToolStripItem[] {
this.optionsToolStripMenuItem});
this.menuStrip1.Location = new System.Drawing.Point(0, 0);
this.menuStrip1.Name = "menuStrip1";
this.menuStrip1.Padding = new System.Windows.Forms.Padding(8, 2, 0, 2);
this.menuStrip1.Size = new System.Drawing.Size(403, 28);
this.menuStrip1.TabIndex = 8;
this.menuStrip1.Text = "menuStrip1";
//
// optionsToolStripMenuItem
//
this.optionsToolStripMenuItem.DropDownItems.AddRange(new System.Windows.Forms.ToolStripItem[] {
this.autoloadToolStripMenuItem,
this.saveWindowPositionToolStripMenuItem,
this.toolStripSeparator1,
this.exitToolStripMenuItem});
this.optionsToolStripMenuItem.Name = "optionsToolStripMenuItem";
this.optionsToolStripMenuItem.Size = new System.Drawing.Size(73, 24);
this.optionsToolStripMenuItem.Text = "&Options";
this.optionsToolStripMenuItem.DropDownOpened += new System.EventHandler(this.optionsToolStripMenuItem_DropDownOpened);
//
// autoloadToolStripMenuItem
//
this.autoloadToolStripMenuItem.Name = "autoloadToolStripMenuItem";
this.autoloadToolStripMenuItem.Size = new System.Drawing.Size(225, 24);
this.autoloadToolStripMenuItem.Text = "Auto-load";
this.autoloadToolStripMenuItem.Click += new System.EventHandler(this.autoloadToolStripMenuItem_Click);
//
// saveWindowPositionToolStripMenuItem
//
this.saveWindowPositionToolStripMenuItem.Name = "saveWindowPositionToolStripMenuItem";
this.saveWindowPositionToolStripMenuItem.Size = new System.Drawing.Size(225, 24);
this.saveWindowPositionToolStripMenuItem.Text = "Save Window Position";
this.saveWindowPositionToolStripMenuItem.Click += new System.EventHandler(this.saveWindowPositionToolStripMenuItem_Click);
//
// toolStripSeparator1
//
this.toolStripSeparator1.Name = "toolStripSeparator1";
this.toolStripSeparator1.Size = new System.Drawing.Size(222, 6);
//
// exitToolStripMenuItem
//
this.exitToolStripMenuItem.Name = "exitToolStripMenuItem";
this.exitToolStripMenuItem.ShortcutKeys = ((System.Windows.Forms.Keys)((System.Windows.Forms.Keys.Alt | System.Windows.Forms.Keys.F4)));
this.exitToolStripMenuItem.Size = new System.Drawing.Size(225, 24);
this.exitToolStripMenuItem.Text = "E&xit";
this.exitToolStripMenuItem.Click += new System.EventHandler(this.exitToolStripMenuItem_Click);
//
// GBGameGenie
//
this.AutoScaleDimensions = new System.Drawing.SizeF(8F, 16F);
this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
this.ClientSize = new System.Drawing.Size(403, 315);
this.Controls.Add(this.ClearButton);
this.Controls.Add(this.groupBox1);
this.Controls.Add(this.ButtonPanel);
this.Controls.Add(this.AddCheat);
this.Controls.Add(this.GameGenieCodeBox);
this.Controls.Add(this.menuStrip1);
this.FormBorderStyle = System.Windows.Forms.FormBorderStyle.Fixed3D;
this.MainMenuStrip = this.menuStrip1;
this.Margin = new System.Windows.Forms.Padding(4);
this.MaximizeBox = false;
this.MaximumSize = new System.Drawing.Size(413, 354);
this.MinimumSize = new System.Drawing.Size(413, 354);
this.Name = "GBGameGenie";
this.ShowIcon = false;
this.Text = "Game Genie Encoder / Decoder";
this.Load += new System.EventHandler(this.GBGameGenie_Load);
this.GameGenieCodeBox.ResumeLayout(false);
this.GameGenieCodeBox.PerformLayout();
this.ButtonPanel.ResumeLayout(false);
this.groupBox1.ResumeLayout(false);
this.groupBox1.PerformLayout();
this.menuStrip1.ResumeLayout(false);
this.menuStrip1.PerformLayout();
this.ResumeLayout(false);
this.PerformLayout();
}
#endregion
private System.Windows.Forms.TextBox GameGenieCode;
private System.Windows.Forms.GroupBox GameGenieCodeBox;
private System.Windows.Forms.Label label3;
private System.Windows.Forms.Label label2;
private System.Windows.Forms.Label label1;
private HexTextBox CompareBox;
private HexTextBox ValueBox;
private HexTextBox AddressBox;
private System.Windows.Forms.Button AddCheat;
private System.Windows.Forms.Panel ButtonPanel;
private System.Windows.Forms.Button B6;
private System.Windows.Forms.Button B4;
private System.Windows.Forms.Button B2;
private System.Windows.Forms.Button B0;
private System.Windows.Forms.Button BE;
private System.Windows.Forms.Button BC;
private System.Windows.Forms.Button BA;
private System.Windows.Forms.Button B8;
private System.Windows.Forms.Button BF;
private System.Windows.Forms.Button BD;
private System.Windows.Forms.Button BB;
private System.Windows.Forms.Button B9;
private System.Windows.Forms.Button B7;
private System.Windows.Forms.Button B5;
private System.Windows.Forms.Button B3;
private System.Windows.Forms.Button B1;
private System.Windows.Forms.GroupBox groupBox1;
private System.Windows.Forms.Label label6;
private System.Windows.Forms.Label label5;
private System.Windows.Forms.Label label4;
private System.Windows.Forms.Button ClearButton;
private System.Windows.Forms.MenuStrip menuStrip1;
private System.Windows.Forms.ToolStripMenuItem optionsToolStripMenuItem;
private System.Windows.Forms.ToolStripMenuItem autoloadToolStripMenuItem;
private System.Windows.Forms.ToolStripMenuItem saveWindowPositionToolStripMenuItem;
private System.Windows.Forms.ToolStripSeparator toolStripSeparator1;
private System.Windows.Forms.ToolStripMenuItem exitToolStripMenuItem;
}
}

View File

@ -0,0 +1,417 @@
using System;
using System.Collections.Generic;
using System.Drawing;
using System.Windows.Forms;
using System.Globalization;
namespace BizHawk.MultiClient
{
public partial class GBGameGenie : Form
{
public int Address = -1;
public int Value = -1;
public int Compare = -1;
private readonly Dictionary<char, int> GameGenieTable = new Dictionary<char, int>();
private bool Decoding = false;
private bool Encoding = false;
public GBGameGenie()
{
InitializeComponent();
Closing += (o, e) => SaveConfigSettings();
GameGenieTable.Add('0', 0); //0000
GameGenieTable.Add('1', 1); //0001
GameGenieTable.Add('2', 2); //0010
GameGenieTable.Add('3', 3); //0011
GameGenieTable.Add('4', 4); //0100
GameGenieTable.Add('5', 5); //0101
GameGenieTable.Add('6', 6); //0110
GameGenieTable.Add('7', 7); //0111
GameGenieTable.Add('8', 8); //1000
GameGenieTable.Add('9', 9); //1001
GameGenieTable.Add('A', 10); //1010
GameGenieTable.Add('B', 11); //1011
GameGenieTable.Add('C', 12); //1100
GameGenieTable.Add('D', 13); //1101
GameGenieTable.Add('E', 14); //1110
GameGenieTable.Add('F', 15); //1111
}
private void GBGameGenie_Load(object sender, EventArgs e)
{
AddCheat.Enabled = false;
if (Global.Config.GBGGSaveWindowPosition && Global.Config.GBGGWndx >= 0 && Global.Config.GBGGWndy >= 0)
Location = new Point(Global.Config.GBGGWndx, Global.Config.GBGGWndy);
}
private void SaveConfigSettings()
{
Global.Config.GBGGWndx = Location.X;
Global.Config.GBGGWndy = Location.Y;
}
private void GameGenieCode_KeyPress(object sender, KeyPressEventArgs e)
{
//Make uppercase
if (e.KeyChar >= 97 && e.KeyChar < 123)
e.KeyChar -= (char)32;
if (!(GameGenieTable.ContainsKey(e.KeyChar)))
{
if (e.KeyChar != (char)Keys.Back || e.KeyChar == '\b' || e.KeyChar == 22 || e.KeyChar == 1 || e.KeyChar == 3)
{
e.Handled = true;
}
}
}
public void GBDecodeGameGenieCode(string code)
{
//No cypher on value
//Char # | 0 | 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 |
//Bit # |3|2|1|0|3|2|1|0|3|2|1|0|3|2|1|0|3|2|1|0|3|2|1|0|3|2|1|0|3|2|1|0|3|2|1|0|
//maps to| Value |A|B|C|D|E|F|G|H|I|J|K|L|XOR 0xF|a|b|c|c|NotUsed|e|f|g|h|
//proper | Value |XOR 0xF|A|B|C|D|E|F|G|H|I|J|K|L|g|h|a|b|Nothing|c|d|e|f|
int x;
byte[] val = { 0, 0 };
// Getting Value
if (code.Length > 0)
{
GameGenieTable.TryGetValue(code[0], out x);
Value = x << 4;
}
if (code.Length > 1)
{
GameGenieTable.TryGetValue(code[1], out x);
Value |= x;
}
//Address
if (code.Length > 2)
{
GameGenieTable.TryGetValue(code[2], out x);
Address = (x << 8);
}
else
Address = -1;
if (code.Length > 3)
{
GameGenieTable.TryGetValue(code[3], out x);
Address |= (x << 4);
}
if (code.Length > 4)
{
GameGenieTable.TryGetValue(code[4], out x);
Address |= x;
}
if (code.Length > 5)
{
GameGenieTable.TryGetValue(code[5], out x);
Address |= ((x ^ 0xF) <<12);
}
// compare need to be full
if (code.Length > 8)
{
int comp = 0;
GameGenieTable.TryGetValue(code[6], out x);
comp = (x << 2);
// 8th character ignored
GameGenieTable.TryGetValue(code[8], out x);
comp |= ((x & 0xC) >> 2);
comp |= ((x & 0x3) << 6);
Compare = comp ^ 0xBA;
}
else
Compare = -1;
SetProperties();
}
private void SetProperties()
{
if (Address >= 0)
AddressBox.Text = String.Format("{0:X4}", Address);
else
AddressBox.Text = "";
if (Compare >= 0)
CompareBox.Text = String.Format("{0:X2}", Compare);
else
CompareBox.Text = "";
if (Value >= 0)
ValueBox.Text = String.Format("{0:X2}", Value);
}
private void ClearProperties()
{
bool tempenc = Encoding;
bool tempdec = Decoding;
Encoding = true;
Decoding = true;
Address = -1;
Value = -1;
Compare = -1;
AddressBox.Text = "";
CompareBox.Text = "";
ValueBox.Text = "";
AddCheat.Enabled = false;
Encoding = tempenc;
Decoding = tempdec;
}
private void GameGenieCode_TextChanged(object sender, EventArgs e)
{
if (Encoding == false)
{
if (GameGenieCode.Text.Length > 0)
{
Decoding = true;
GBDecodeGameGenieCode(GameGenieCode.Text);
}
else
ClearProperties();
}
TryEnableAddCheat();
Decoding = false;
}
private void Keypad_Click(object sender, EventArgs e)
{
if (GameGenieCode.Text.Length < 9)
{
string code = "";
if (sender == B0) code = "0";
if (sender == B1) code += "1";
if (sender == B2) code += "2";
if (sender == B3) code += "3";
if (sender == B4) code += "4";
if (sender == B5) code += "5";
if (sender == B6) code += "6";
if (sender == B7) code += "7";
if (sender == B8) code += "8";
if (sender == B9) code += "9";
if (sender == BA) code += "A";
if (sender == BB) code += "B";
if (sender == BC) code += "C";
if (sender == BD) code += "D";
if (sender == BE) code += "E";
if (sender == BF) code += "F";
int x = GameGenieCode.SelectionStart;
GameGenieCode.Text = GameGenieCode.Text.Insert(x, code);
GameGenieCode.SelectionStart = x + 1;
}
}
private void AddressBox_TextChanged(object sender, EventArgs e)
{
if (Decoding == false)
{
if (AddressBox.Text.Length > 0)
{
Address = int.Parse(AddressBox.Text, NumberStyles.HexNumber);
if (ValueBox.Text.Length > 0)
Value = int.Parse(ValueBox.Text, NumberStyles.HexNumber);
else
Value = 0;
if (CompareBox.Text.Length == 2)
Compare = int.Parse(CompareBox.Text, NumberStyles.HexNumber);
else
Compare = 0;
Encoding = true;
GBEncodeGameGenie();
Encoding = false;
}
}
TryEnableAddCheat();
}
private void CompareBox_TextChanged(object sender, EventArgs e)
{
if (Decoding == false)
{
if (CompareBox.Text.Length == 2)
Compare = int.Parse(CompareBox.Text, NumberStyles.HexNumber);
if (AddressBox.Text.Length > 0)
Address = int.Parse(AddressBox.Text, NumberStyles.HexNumber);
else
Address = 0x0000;
if (ValueBox.Text.Length > 0)
Value = int.Parse(ValueBox.Text, NumberStyles.HexNumber);
else
Value = 0;
Encoding = true;
GBEncodeGameGenie();
Encoding = false;
}
TryEnableAddCheat();
}
private void TryEnableAddCheat()
{
if (AddressBox.Text.Length == 4 && ValueBox.Text.Length == 2)
AddCheat.Enabled = true;
else
AddCheat.Enabled = false;
}
private void ValueBox_TextChanged(object sender, EventArgs e)
{
if (Decoding == false)
{
if (ValueBox.Text.Length > 0)
{
if (AddressBox.Text.Length > 0)
Address = int.Parse(AddressBox.Text, NumberStyles.HexNumber);
else
Address = 0x0000;
if (CompareBox.Text.Length == 2)
Compare = int.Parse(CompareBox.Text, NumberStyles.HexNumber);
else
Compare = 0;
Value = int.Parse(ValueBox.Text, NumberStyles.HexNumber);
Encoding = true;
GBEncodeGameGenie();
Encoding = false;
}
}
TryEnableAddCheat();
}
private void GBEncodeGameGenie()
{
char[] letters = { '0', '1', '2', '3', '4', '5', '6', '7', '8', '9', 'A', 'B', 'C', 'D', 'E', 'F' };
GameGenieCode.Text = "";
int[] num = { 0, 0, 0, 0, 0, 0, 0, 0, 0 };
num[0] = (Value & 0xF0) >> 4;
num[1] = Value & 0x0F;
num[2] = (Address & 0x0F00) >> 8;
num[3] = (Address & 0x00F0) >> 4;
num[4] = (Address & 0x000F);
num[5] = (((Address & 0xF000) >> 12) ^ 0xF);
if (CompareBox.Text.Length == 2)
{
int xoredcomp = ((Compare &0xFF) ^ 0xBA);
num[6] = ((xoredcomp & 0x30) >> 2);
num[6] |= ((xoredcomp & 0x0C) >> 2);
// 8th char has no real use (its value is not reflected in the address:value:compare
// probably a protection to stop people making code up, xor the 7th digit with 0x8
// to get back what the original code had (Might be more to it)
num[7] = num[6] ^ 8;
num[8] = ((xoredcomp & 0xC0) >> 6);
num[8] |= ((xoredcomp &0x03) << 2);
for (int x = 0; x < 9; x++)
GameGenieCode.Text += letters[num[x]];
}
else
{
for (int x = 0; x < 6; x++)
GameGenieCode.Text += letters[num[x]];
}
}
private void ClearButton_Click(object sender, EventArgs e)
{
ClearProperties();
GameGenieCode.Text = "";
}
private void AddCheat_Click(object sender, EventArgs e)
{
AddCheatClick();
}
private void AddCheatClick()
{
Cheat c = new Cheat {name = GameGenieCode.Text};
if (String.IsNullOrWhiteSpace(AddressBox.Text))
{
return;
}
else if (String.IsNullOrWhiteSpace(ValueBox.Text))
{
return;
}
c.address = int.Parse(AddressBox.Text, NumberStyles.HexNumber);
c.value = byte.Parse(ValueBox.Text, NumberStyles.HexNumber);
if (!String.IsNullOrWhiteSpace(CompareBox.Text))
{
try
{
c.compare = byte.Parse(CompareBox.Text, NumberStyles.HexNumber);
}
catch
{
c.compare = null;
}
}
else
{
c.compare = null;
}
c.Enable();
for (int x = 0; x < Global.Emulator.MemoryDomains.Count; x++)
if (Global.Emulator.MemoryDomains[x].ToString() == "System Bus")
{
c.domain = Global.Emulator.MemoryDomains[x]; //Bus
Global.MainForm.Cheats1.AddCheat(c);
break;
}
}
private void exitToolStripMenuItem_Click(object sender, EventArgs e)
{
Close();
}
private void saveWindowPositionToolStripMenuItem_Click(object sender, EventArgs e)
{
Global.Config.GBGGSaveWindowPosition ^= true;
}
private void autoloadToolStripMenuItem_Click(object sender, EventArgs e)
{
Global.Config.GBGGAutoload ^= true;
}
private void optionsToolStripMenuItem_DropDownOpened(object sender, EventArgs e)
{
autoloadToolStripMenuItem.Checked = Global.Config.GBGGAutoload;
saveWindowPositionToolStripMenuItem.Checked = Global.Config.GBGGSaveWindowPosition;
}
private void GameGenieCode_KeyDown(object sender, KeyEventArgs e)
{
if (e.KeyData == Keys.Enter)
{
if (AddCheat.Enabled)
{
AddCheatClick();
}
}
}
}
}

View File

@ -0,0 +1,123 @@
<?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>
<metadata name="menuStrip1.TrayLocation" type="System.Drawing.Point, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a">
<value>17, 17</value>
</metadata>
</root>

View File

@ -260,6 +260,7 @@
this.loadGBInSGBToolStripMenuItem1 = new System.Windows.Forms.ToolStripMenuItem();
this.toolStripSeparator28 = new System.Windows.Forms.ToolStripSeparator();
this.gPUViewerToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem();
this.GBgameGenieCodesToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem();
this.gBAToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem();
this.gPUViewToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem();
this.sNESToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem();
@ -326,6 +327,7 @@
this.cmiScreenshotClipboard = new System.Windows.Forms.ToolStripMenuItem();
this.cmiCloseRom = new System.Windows.Forms.ToolStripMenuItem();
this.cmiShowMenu = new System.Windows.Forms.ToolStripMenuItem();
this.GGgameGenieEncoderDecoderToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem();
this.menuStrip1.SuspendLayout();
this.StatusSlot0.SuspendLayout();
this.contextMenuStrip1.SuspendLayout();
@ -335,21 +337,21 @@
//
this.menuStrip1.ClickThrough = true;
this.menuStrip1.Items.AddRange(new System.Windows.Forms.ToolStripItem[] {
this.fileToolStripMenuItem,
this.emulationToolStripMenuItem,
this.viewToolStripMenuItem,
this.configToolStripMenuItem,
this.toolsToolStripMenuItem,
this.NESToolStripMenuItem,
this.pCEToolStripMenuItem,
this.sMSToolStripMenuItem,
this.tI83ToolStripMenuItem,
this.atariToolStripMenuItem,
this.gBToolStripMenuItem,
this.gBAToolStripMenuItem,
this.sNESToolStripMenuItem,
this.colecoToolStripMenuItem,
this.helpToolStripMenuItem});
this.fileToolStripMenuItem,
this.emulationToolStripMenuItem,
this.viewToolStripMenuItem,
this.configToolStripMenuItem,
this.toolsToolStripMenuItem,
this.NESToolStripMenuItem,
this.pCEToolStripMenuItem,
this.sMSToolStripMenuItem,
this.tI83ToolStripMenuItem,
this.atariToolStripMenuItem,
this.gBToolStripMenuItem,
this.gBAToolStripMenuItem,
this.sNESToolStripMenuItem,
this.colecoToolStripMenuItem,
this.helpToolStripMenuItem});
this.menuStrip1.LayoutStyle = System.Windows.Forms.ToolStripLayoutStyle.Flow;
this.menuStrip1.Location = new System.Drawing.Point(0, 0);
this.menuStrip1.Name = "menuStrip1";
@ -362,19 +364,19 @@
// fileToolStripMenuItem
//
this.fileToolStripMenuItem.DropDownItems.AddRange(new System.Windows.Forms.ToolStripItem[] {
this.openROMToolStripMenuItem,
this.recentROMToolStripMenuItem,
this.closeROMToolStripMenuItem,
this.toolStripMenuItem1,
this.saveStateToolStripMenuItem,
this.loadStateToolStripMenuItem,
this.saveSlotToolStripMenuItem,
this.toolStripMenuItem2,
this.movieToolStripMenuItem,
this.AVIWAVToolStripMenuItem,
this.screenshotToolStripMenuItem,
this.toolStripSeparator4,
this.exitToolStripMenuItem});
this.openROMToolStripMenuItem,
this.recentROMToolStripMenuItem,
this.closeROMToolStripMenuItem,
this.toolStripMenuItem1,
this.saveStateToolStripMenuItem,
this.loadStateToolStripMenuItem,
this.saveSlotToolStripMenuItem,
this.toolStripMenuItem2,
this.movieToolStripMenuItem,
this.AVIWAVToolStripMenuItem,
this.screenshotToolStripMenuItem,
this.toolStripSeparator4,
this.exitToolStripMenuItem});
this.fileToolStripMenuItem.Name = "fileToolStripMenuItem";
this.fileToolStripMenuItem.Size = new System.Drawing.Size(44, 24);
this.fileToolStripMenuItem.Text = "&File";
@ -391,10 +393,10 @@
// recentROMToolStripMenuItem
//
this.recentROMToolStripMenuItem.DropDownItems.AddRange(new System.Windows.Forms.ToolStripItem[] {
this.noneToolStripMenuItem,
this.toolStripSeparator3,
this.clearToolStripMenuItem,
this.autoloadMostRecentToolStripMenuItem});
this.noneToolStripMenuItem,
this.toolStripSeparator3,
this.clearToolStripMenuItem,
this.autoloadMostRecentToolStripMenuItem});
this.recentROMToolStripMenuItem.Image = global::BizHawk.MultiClient.Properties.Resources.Recent;
this.recentROMToolStripMenuItem.Name = "recentROMToolStripMenuItem";
this.recentROMToolStripMenuItem.Size = new System.Drawing.Size(160, 24);
@ -442,18 +444,18 @@
// saveStateToolStripMenuItem
//
this.saveStateToolStripMenuItem.DropDownItems.AddRange(new System.Windows.Forms.ToolStripItem[] {
this.savestate1toolStripMenuItem,
this.savestate2toolStripMenuItem,
this.savestate3toolStripMenuItem,
this.savestate4toolStripMenuItem,
this.savestate5toolStripMenuItem,
this.savestate6toolStripMenuItem,
this.savestate7toolStripMenuItem,
this.savestate8toolStripMenuItem,
this.savestate9toolStripMenuItem,
this.savestate0toolStripMenuItem,
this.toolStripSeparator6,
this.saveNamedStateToolStripMenuItem});
this.savestate1toolStripMenuItem,
this.savestate2toolStripMenuItem,
this.savestate3toolStripMenuItem,
this.savestate4toolStripMenuItem,
this.savestate5toolStripMenuItem,
this.savestate6toolStripMenuItem,
this.savestate7toolStripMenuItem,
this.savestate8toolStripMenuItem,
this.savestate9toolStripMenuItem,
this.savestate0toolStripMenuItem,
this.toolStripSeparator6,
this.saveNamedStateToolStripMenuItem});
this.saveStateToolStripMenuItem.Name = "saveStateToolStripMenuItem";
this.saveStateToolStripMenuItem.Size = new System.Drawing.Size(160, 24);
this.saveStateToolStripMenuItem.Text = "Save State";
@ -544,20 +546,20 @@
// loadStateToolStripMenuItem
//
this.loadStateToolStripMenuItem.DropDownItems.AddRange(new System.Windows.Forms.ToolStripItem[] {
this.loadstate1toolStripMenuItem,
this.loadstate2toolStripMenuItem,
this.loadstate3toolStripMenuItem,
this.loadstate4toolStripMenuItem,
this.loadstate5toolStripMenuItem,
this.loadstate6toolStripMenuItem,
this.loadstate7toolStripMenuItem,
this.loadstate8toolStripMenuItem,
this.loadstate9toolStripMenuItem,
this.loadstate0toolStripMenuItem,
this.toolStripSeparator7,
this.loadNamedStateToolStripMenuItem,
this.toolStripSeparator21,
this.autoLoadLastSlotToolStripMenuItem});
this.loadstate1toolStripMenuItem,
this.loadstate2toolStripMenuItem,
this.loadstate3toolStripMenuItem,
this.loadstate4toolStripMenuItem,
this.loadstate5toolStripMenuItem,
this.loadstate6toolStripMenuItem,
this.loadstate7toolStripMenuItem,
this.loadstate8toolStripMenuItem,
this.loadstate9toolStripMenuItem,
this.loadstate0toolStripMenuItem,
this.toolStripSeparator7,
this.loadNamedStateToolStripMenuItem,
this.toolStripSeparator21,
this.autoLoadLastSlotToolStripMenuItem});
this.loadStateToolStripMenuItem.Name = "loadStateToolStripMenuItem";
this.loadStateToolStripMenuItem.Size = new System.Drawing.Size(160, 24);
this.loadStateToolStripMenuItem.Text = "Load State";
@ -660,21 +662,21 @@
// saveSlotToolStripMenuItem
//
this.saveSlotToolStripMenuItem.DropDownItems.AddRange(new System.Windows.Forms.ToolStripItem[] {
this.selectSlot10ToolStripMenuItem,
this.selectSlot1ToolStripMenuItem,
this.selectSlot2ToolStripMenuItem,
this.selectSlot3ToolStripMenuItem,
this.selectSlot4ToolStripMenuItem,
this.selectSlot5ToolStripMenuItem,
this.selectSlot6ToolStripMenuItem,
this.selectSlot7ToolStripMenuItem,
this.selectSlot8ToolStripMenuItem,
this.selectSlot9ToolStripMenuItem,
this.previousSlotToolStripMenuItem,
this.nextSlotToolStripMenuItem,
this.toolStripSeparator5,
this.saveToCurrentSlotToolStripMenuItem,
this.loadCurrentSlotToolStripMenuItem});
this.selectSlot10ToolStripMenuItem,
this.selectSlot1ToolStripMenuItem,
this.selectSlot2ToolStripMenuItem,
this.selectSlot3ToolStripMenuItem,
this.selectSlot4ToolStripMenuItem,
this.selectSlot5ToolStripMenuItem,
this.selectSlot6ToolStripMenuItem,
this.selectSlot7ToolStripMenuItem,
this.selectSlot8ToolStripMenuItem,
this.selectSlot9ToolStripMenuItem,
this.previousSlotToolStripMenuItem,
this.nextSlotToolStripMenuItem,
this.toolStripSeparator5,
this.saveToCurrentSlotToolStripMenuItem,
this.loadCurrentSlotToolStripMenuItem});
this.saveSlotToolStripMenuItem.Name = "saveSlotToolStripMenuItem";
this.saveSlotToolStripMenuItem.Size = new System.Drawing.Size(160, 24);
this.saveSlotToolStripMenuItem.Text = "SaveSlot";
@ -793,20 +795,20 @@
// movieToolStripMenuItem
//
this.movieToolStripMenuItem.DropDownItems.AddRange(new System.Windows.Forms.ToolStripItem[] {
this.readonlyToolStripMenuItem,
this.toolStripSeparator15,
this.recentToolStripMenuItem,
this.recordMovieToolStripMenuItem,
this.playMovieToolStripMenuItem,
this.stopMovieToolStripMenuItem,
this.playFromBeginningToolStripMenuItem,
this.importMovieToolStripMenuItem,
this.saveMovieToolStripMenuItem,
this.stopMovieWithoutSavingToolStripMenuItem,
this.toolStripSeparator14,
this.bindSavestatesToMoviesToolStripMenuItem,
this.automaticallyBackupMoviesToolStripMenuItem,
this.fullMovieLoadstatesToolStripMenuItem});
this.readonlyToolStripMenuItem,
this.toolStripSeparator15,
this.recentToolStripMenuItem,
this.recordMovieToolStripMenuItem,
this.playMovieToolStripMenuItem,
this.stopMovieToolStripMenuItem,
this.playFromBeginningToolStripMenuItem,
this.importMovieToolStripMenuItem,
this.saveMovieToolStripMenuItem,
this.stopMovieWithoutSavingToolStripMenuItem,
this.toolStripSeparator14,
this.bindSavestatesToMoviesToolStripMenuItem,
this.automaticallyBackupMoviesToolStripMenuItem,
this.fullMovieLoadstatesToolStripMenuItem});
this.movieToolStripMenuItem.Name = "movieToolStripMenuItem";
this.movieToolStripMenuItem.Size = new System.Drawing.Size(160, 24);
this.movieToolStripMenuItem.Text = "Movie";
@ -828,10 +830,10 @@
// recentToolStripMenuItem
//
this.recentToolStripMenuItem.DropDownItems.AddRange(new System.Windows.Forms.ToolStripItem[] {
this.noneToolStripMenuItem1,
this.toolStripSeparator16,
this.clearToolStripMenuItem1,
this.autoloadMostRecentToolStripMenuItem1});
this.noneToolStripMenuItem1,
this.toolStripSeparator16,
this.clearToolStripMenuItem1,
this.autoloadMostRecentToolStripMenuItem1});
this.recentToolStripMenuItem.Image = global::BizHawk.MultiClient.Properties.Resources.Recent;
this.recentToolStripMenuItem.Name = "recentToolStripMenuItem";
this.recentToolStripMenuItem.Size = new System.Drawing.Size(273, 24);
@ -946,10 +948,10 @@
// AVIWAVToolStripMenuItem
//
this.AVIWAVToolStripMenuItem.DropDownItems.AddRange(new System.Windows.Forms.ToolStripItem[] {
this.recordAVIToolStripMenuItem,
this.stopAVIToolStripMenuItem,
this.toolStripSeparator19,
this.captureOSDToolStripMenuItem});
this.recordAVIToolStripMenuItem,
this.stopAVIToolStripMenuItem,
this.toolStripSeparator19,
this.captureOSDToolStripMenuItem});
this.AVIWAVToolStripMenuItem.Name = "AVIWAVToolStripMenuItem";
this.AVIWAVToolStripMenuItem.Size = new System.Drawing.Size(160, 24);
this.AVIWAVToolStripMenuItem.Text = "AVI/WAV";
@ -986,11 +988,11 @@
// screenshotToolStripMenuItem
//
this.screenshotToolStripMenuItem.DropDownItems.AddRange(new System.Windows.Forms.ToolStripItem[] {
this.screenshotF12ToolStripMenuItem,
this.screenshotAsToolStripMenuItem,
this.screenshotClipboardToolStripMenuItem,
this.toolStripSeparator20,
this.captureOSDToolStripMenuItem1});
this.screenshotF12ToolStripMenuItem,
this.screenshotAsToolStripMenuItem,
this.screenshotClipboardToolStripMenuItem,
this.toolStripSeparator20,
this.captureOSDToolStripMenuItem1});
this.screenshotToolStripMenuItem.Name = "screenshotToolStripMenuItem";
this.screenshotToolStripMenuItem.Size = new System.Drawing.Size(160, 24);
this.screenshotToolStripMenuItem.Text = "Screenshot";
@ -1047,11 +1049,11 @@
// emulationToolStripMenuItem
//
this.emulationToolStripMenuItem.DropDownItems.AddRange(new System.Windows.Forms.ToolStripItem[] {
this.pauseToolStripMenuItem,
this.rebootCoreToolStripMenuItem,
this.toolStripSeparator1,
this.resetToolStripMenuItem,
this.hardResetToolStripMenuItem});
this.pauseToolStripMenuItem,
this.rebootCoreToolStripMenuItem,
this.toolStripSeparator1,
this.resetToolStripMenuItem,
this.hardResetToolStripMenuItem});
this.emulationToolStripMenuItem.Name = "emulationToolStripMenuItem";
this.emulationToolStripMenuItem.Size = new System.Drawing.Size(88, 24);
this.emulationToolStripMenuItem.Text = "&Emulation";
@ -1095,19 +1097,19 @@
// viewToolStripMenuItem
//
this.viewToolStripMenuItem.DropDownItems.AddRange(new System.Windows.Forms.ToolStripItem[] {
this.windowFilterMenuItem,
this.windowSizeMenuItem,
this.switchToFullscreenToolStripMenuItem,
this.toolStripSeparator2,
this.displayFPSToolStripMenuItem,
this.displayFrameCounterToolStripMenuItem,
this.displayLagCounterToolStripMenuItem,
this.displayInputToolStripMenuItem,
this.displayRerecordCountToolStripMenuItem,
this.displaySubtitlesToolStripMenuItem,
this.toolStripMenuItem4,
this.displayStatusBarToolStripMenuItem,
this.displayLogWindowToolStripMenuItem});
this.windowFilterMenuItem,
this.windowSizeMenuItem,
this.switchToFullscreenToolStripMenuItem,
this.toolStripSeparator2,
this.displayFPSToolStripMenuItem,
this.displayFrameCounterToolStripMenuItem,
this.displayLagCounterToolStripMenuItem,
this.displayInputToolStripMenuItem,
this.displayRerecordCountToolStripMenuItem,
this.displaySubtitlesToolStripMenuItem,
this.toolStripMenuItem4,
this.displayStatusBarToolStripMenuItem,
this.displayLogWindowToolStripMenuItem});
this.viewToolStripMenuItem.Name = "viewToolStripMenuItem";
this.viewToolStripMenuItem.Size = new System.Drawing.Size(53, 24);
this.viewToolStripMenuItem.Text = "&View";
@ -1116,10 +1118,10 @@
// windowFilterMenuItem
//
this.windowFilterMenuItem.DropDownItems.AddRange(new System.Windows.Forms.ToolStripItem[] {
this.DisplayFilterNoneMenuItem,
this.x2SAIMenuItem,
this.SuperX2SAIMenuItem,
this.SuperEagleMenuItem});
this.DisplayFilterNoneMenuItem,
this.x2SAIMenuItem,
this.SuperX2SAIMenuItem,
this.SuperEagleMenuItem});
this.windowFilterMenuItem.Name = "windowFilterMenuItem";
this.windowFilterMenuItem.Size = new System.Drawing.Size(234, 24);
this.windowFilterMenuItem.Text = "Display Filter";
@ -1155,12 +1157,12 @@
// windowSizeMenuItem
//
this.windowSizeMenuItem.DropDownItems.AddRange(new System.Windows.Forms.ToolStripItem[] {
this.x1MenuItem,
this.x2MenuItem,
this.x3MenuItem,
this.x4MenuItem,
this.x5MenuItem,
this.mzMenuItem});
this.x1MenuItem,
this.x2MenuItem,
this.x3MenuItem,
this.x4MenuItem,
this.x5MenuItem,
this.mzMenuItem});
this.windowSizeMenuItem.Name = "windowSizeMenuItem";
this.windowSizeMenuItem.Size = new System.Drawing.Size(234, 24);
this.windowSizeMenuItem.Text = "&Window Size";
@ -1284,20 +1286,20 @@
// configToolStripMenuItem
//
this.configToolStripMenuItem.DropDownItems.AddRange(new System.Windows.Forms.ToolStripItem[] {
this.controllersToolStripMenuItem,
this.hotkeysToolStripMenuItem,
this.messagesToolStripMenuItem,
this.pathsToolStripMenuItem,
this.soundToolStripMenuItem,
this.autofireToolStripMenuItem,
this.toolStripSeparator9,
this.enableToolStripMenuItem,
this.gUIToolStripMenuItem,
this.frameSkipToolStripMenuItem,
this.keyPriorityToolStripMenuItem,
this.toolStripSeparator10,
this.saveConfigToolStripMenuItem,
this.loadConfigToolStripMenuItem});
this.controllersToolStripMenuItem,
this.hotkeysToolStripMenuItem,
this.messagesToolStripMenuItem,
this.pathsToolStripMenuItem,
this.soundToolStripMenuItem,
this.autofireToolStripMenuItem,
this.toolStripSeparator9,
this.enableToolStripMenuItem,
this.gUIToolStripMenuItem,
this.frameSkipToolStripMenuItem,
this.keyPriorityToolStripMenuItem,
this.toolStripSeparator10,
this.saveConfigToolStripMenuItem,
this.loadConfigToolStripMenuItem});
this.configToolStripMenuItem.Name = "configToolStripMenuItem";
this.configToolStripMenuItem.Size = new System.Drawing.Size(65, 24);
this.configToolStripMenuItem.Text = "&Config";
@ -1358,13 +1360,13 @@
// enableToolStripMenuItem
//
this.enableToolStripMenuItem.DropDownItems.AddRange(new System.Windows.Forms.ToolStripItem[] {
this.enableRewindToolStripMenuItem,
this.enableContextMenuToolStripMenuItem,
this.backupSavestatesToolStripMenuItem,
this.autoSavestatesToolStripMenuItem,
this.saveScreenshotWithSavestatesToolStripMenuItem,
this.frameAdvanceSkipLagFramesToolStripMenuItem,
this.backupSaveramToolStripMenuItem});
this.enableRewindToolStripMenuItem,
this.enableContextMenuToolStripMenuItem,
this.backupSavestatesToolStripMenuItem,
this.autoSavestatesToolStripMenuItem,
this.saveScreenshotWithSavestatesToolStripMenuItem,
this.frameAdvanceSkipLagFramesToolStripMenuItem,
this.backupSaveramToolStripMenuItem});
this.enableToolStripMenuItem.Name = "enableToolStripMenuItem";
this.enableToolStripMenuItem.Size = new System.Drawing.Size(159, 24);
this.enableToolStripMenuItem.Text = "&Enable";
@ -1422,20 +1424,20 @@
// gUIToolStripMenuItem
//
this.gUIToolStripMenuItem.DropDownItems.AddRange(new System.Windows.Forms.ToolStripItem[] {
this.pauseWhenMenuActivatedToolStripMenuItem,
this.startPausedToolStripMenuItem,
this.toolStripSeparator22,
this.saveWindowPositionToolStripMenuItem,
this.forceGDIPPresentationToolStripMenuItem,
this.blurryToolStripMenuItem,
this.miSuppressGuiLayer,
this.showMenuInFullScreenToolStripMenuItem,
this.runInBackgroundToolStripMenuItem,
this.acceptBackgroundInputToolStripMenuItem,
this.singleInstanceModeToolStripMenuItem,
this.neverBeAskedToSaveChangesToolStripMenuItem,
this.toolStripSeparator23,
this.logWindowAsConsoleToolStripMenuItem});
this.pauseWhenMenuActivatedToolStripMenuItem,
this.startPausedToolStripMenuItem,
this.toolStripSeparator22,
this.saveWindowPositionToolStripMenuItem,
this.forceGDIPPresentationToolStripMenuItem,
this.blurryToolStripMenuItem,
this.miSuppressGuiLayer,
this.showMenuInFullScreenToolStripMenuItem,
this.runInBackgroundToolStripMenuItem,
this.acceptBackgroundInputToolStripMenuItem,
this.singleInstanceModeToolStripMenuItem,
this.neverBeAskedToSaveChangesToolStripMenuItem,
this.toolStripSeparator23,
this.logWindowAsConsoleToolStripMenuItem});
this.gUIToolStripMenuItem.Name = "gUIToolStripMenuItem";
this.gUIToolStripMenuItem.Size = new System.Drawing.Size(159, 24);
this.gUIToolStripMenuItem.Text = "GUI";
@ -1538,29 +1540,29 @@
// frameSkipToolStripMenuItem
//
this.frameSkipToolStripMenuItem.DropDownItems.AddRange(new System.Windows.Forms.ToolStripItem[] {
this.miLimitFramerate,
this.audioThrottleToolStripMenuItem,
this.miDisplayVsync,
this.toolStripSeparator27,
this.vSyncEnabledToolStripMenuItem,
this.toolStripMenuItem3,
this.miAutoMinimizeSkipping,
this.miFrameskip0,
this.miFrameskip1,
this.miFrameskip2,
this.miFrameskip3,
this.miFrameskip4,
this.miFrameskip5,
this.miFrameskip6,
this.miFrameskip7,
this.miFrameskip8,
this.miFrameskip9,
this.toolStripMenuItem5,
this.miSpeed50,
this.miSpeed75,
this.miSpeed100,
this.miSpeed150,
this.miSpeed200});
this.miLimitFramerate,
this.audioThrottleToolStripMenuItem,
this.miDisplayVsync,
this.toolStripSeparator27,
this.vSyncEnabledToolStripMenuItem,
this.toolStripMenuItem3,
this.miAutoMinimizeSkipping,
this.miFrameskip0,
this.miFrameskip1,
this.miFrameskip2,
this.miFrameskip3,
this.miFrameskip4,
this.miFrameskip5,
this.miFrameskip6,
this.miFrameskip7,
this.miFrameskip8,
this.miFrameskip9,
this.toolStripMenuItem5,
this.miSpeed50,
this.miSpeed75,
this.miSpeed100,
this.miSpeed150,
this.miSpeed200});
this.frameSkipToolStripMenuItem.Name = "frameSkipToolStripMenuItem";
this.frameSkipToolStripMenuItem.Size = new System.Drawing.Size(159, 24);
this.frameSkipToolStripMenuItem.Text = "Speed/Skip";
@ -1725,9 +1727,9 @@
// keyPriorityToolStripMenuItem
//
this.keyPriorityToolStripMenuItem.DropDownItems.AddRange(new System.Windows.Forms.ToolStripItem[] {
this.bothHotkeysAndControllersToolStripMenuItem,
this.inputOverridesHotkeysToolStripMenuItem,
this.hotkeysOverrideInputToolStripMenuItem});
this.bothHotkeysAndControllersToolStripMenuItem,
this.inputOverridesHotkeysToolStripMenuItem,
this.hotkeysOverrideInputToolStripMenuItem});
this.keyPriorityToolStripMenuItem.Name = "keyPriorityToolStripMenuItem";
this.keyPriorityToolStripMenuItem.Size = new System.Drawing.Size(159, 24);
this.keyPriorityToolStripMenuItem.Text = "Key Priority";
@ -1778,18 +1780,18 @@
// toolsToolStripMenuItem
//
this.toolsToolStripMenuItem.DropDownItems.AddRange(new System.Windows.Forms.ToolStripItem[] {
this.toolBoxToolStripMenuItem,
this.toolStripSeparator12,
this.rAMWatchToolStripMenuItem,
this.rAMSearchToolStripMenuItem,
this.rAMPokeToolStripMenuItem,
this.hexEditorToolStripMenuItem,
this.traceLoggerToolStripMenuItem,
this.tAStudioToolStripMenuItem,
this.virtualPadToolStripMenuItem,
this.toolStripSeparator11,
this.luaConsoleToolStripMenuItem,
this.cheatsToolStripMenuItem});
this.toolBoxToolStripMenuItem,
this.toolStripSeparator12,
this.rAMWatchToolStripMenuItem,
this.rAMSearchToolStripMenuItem,
this.rAMPokeToolStripMenuItem,
this.hexEditorToolStripMenuItem,
this.traceLoggerToolStripMenuItem,
this.tAStudioToolStripMenuItem,
this.virtualPadToolStripMenuItem,
this.toolStripSeparator11,
this.luaConsoleToolStripMenuItem,
this.cheatsToolStripMenuItem});
this.toolsToolStripMenuItem.Name = "toolsToolStripMenuItem";
this.toolsToolStripMenuItem.Size = new System.Drawing.Size(57, 24);
this.toolsToolStripMenuItem.Text = "&Tools";
@ -1888,14 +1890,14 @@
// NESToolStripMenuItem
//
this.NESToolStripMenuItem.DropDownItems.AddRange(new System.Windows.Forms.ToolStripItem[] {
this.debuggerToolStripMenuItem,
this.pPUViewerToolStripMenuItem,
this.nametableViewerToolStripMenuItem,
this.gameGenieCodesToolStripMenuItem,
this.toolStripSeparator17,
this.graphicsSettingsToolStripMenuItem,
this.soundChannelsToolStripMenuItem,
this.nESSpeicalToolStripMenuItem});
this.debuggerToolStripMenuItem,
this.pPUViewerToolStripMenuItem,
this.nametableViewerToolStripMenuItem,
this.gameGenieCodesToolStripMenuItem,
this.toolStripSeparator17,
this.graphicsSettingsToolStripMenuItem,
this.soundChannelsToolStripMenuItem,
this.nESSpeicalToolStripMenuItem});
this.NESToolStripMenuItem.Name = "NESToolStripMenuItem";
this.NESToolStripMenuItem.Size = new System.Drawing.Size(48, 24);
this.NESToolStripMenuItem.Text = "&NES";
@ -1957,12 +1959,12 @@
// pCEToolStripMenuItem
//
this.pCEToolStripMenuItem.DropDownItems.AddRange(new System.Windows.Forms.ToolStripItem[] {
this.pceBGViewerToolStripMenuItem,
this.toolStripSeparator25,
this.pceAlwaysPerformSpriteLimitToolStripMenuItem,
this.pceAlwaysEqualizeVolumesToolStripMenuItem,
this.pceArcadeCardRewindEnableHackToolStripMenuItem,
this.pceGraphicsSettingsToolStripMenuItem});
this.pceBGViewerToolStripMenuItem,
this.toolStripSeparator25,
this.pceAlwaysPerformSpriteLimitToolStripMenuItem,
this.pceAlwaysEqualizeVolumesToolStripMenuItem,
this.pceArcadeCardRewindEnableHackToolStripMenuItem,
this.pceGraphicsSettingsToolStripMenuItem});
this.pCEToolStripMenuItem.Name = "pCEToolStripMenuItem";
this.pCEToolStripMenuItem.Size = new System.Drawing.Size(46, 24);
this.pCEToolStripMenuItem.Text = "&PCE";
@ -2011,14 +2013,15 @@
// sMSToolStripMenuItem
//
this.sMSToolStripMenuItem.DropDownItems.AddRange(new System.Windows.Forms.ToolStripItem[] {
this.smsEnableFMChipToolStripMenuItem,
this.smsOverclockWhenKnownSafeToolStripMenuItem,
this.smsForceStereoSeparationToolStripMenuItem,
this.smsSpriteLimitToolStripMenuItem,
this.showClippedRegionsToolStripMenuItem,
this.highlightActiveDisplayRegionToolStripMenuItem,
this.toolStripSeparator24,
this.smsGraphicsSettingsToolStripMenuItem});
this.smsEnableFMChipToolStripMenuItem,
this.smsOverclockWhenKnownSafeToolStripMenuItem,
this.smsForceStereoSeparationToolStripMenuItem,
this.smsSpriteLimitToolStripMenuItem,
this.showClippedRegionsToolStripMenuItem,
this.highlightActiveDisplayRegionToolStripMenuItem,
this.toolStripSeparator24,
this.smsGraphicsSettingsToolStripMenuItem,
this.GGgameGenieEncoderDecoderToolStripMenuItem});
this.sMSToolStripMenuItem.Name = "sMSToolStripMenuItem";
this.sMSToolStripMenuItem.Size = new System.Drawing.Size(50, 24);
this.sMSToolStripMenuItem.Text = "&SMS";
@ -2081,9 +2084,9 @@
// tI83ToolStripMenuItem
//
this.tI83ToolStripMenuItem.DropDownItems.AddRange(new System.Windows.Forms.ToolStripItem[] {
this.keypadToolStripMenuItem,
this.toolStripSeparator13,
this.autoloadVirtualKeyboardToolStripMenuItem});
this.keypadToolStripMenuItem,
this.toolStripSeparator13,
this.autoloadVirtualKeyboardToolStripMenuItem});
this.tI83ToolStripMenuItem.Name = "tI83ToolStripMenuItem";
this.tI83ToolStripMenuItem.Size = new System.Drawing.Size(49, 24);
this.tI83ToolStripMenuItem.Text = "TI83";
@ -2114,17 +2117,17 @@
// atariToolStripMenuItem
//
this.atariToolStripMenuItem.DropDownItems.AddRange(new System.Windows.Forms.ToolStripItem[] {
this.bWToolStripMenuItem,
this.p0DifficultyToolStripMenuItem,
this.rightDifficultyToolStripMenuItem,
this.toolStripSeparator26,
this.showBGToolStripMenuItem,
this.showPlayfieldToolStripMenuItem,
this.showPlayer1ToolStripMenuItem,
this.showPlayer2ToolStripMenuItem,
this.showMissle1ToolStripMenuItem,
this.showMissle2ToolStripMenuItem,
this.showBallToolStripMenuItem});
this.bWToolStripMenuItem,
this.p0DifficultyToolStripMenuItem,
this.rightDifficultyToolStripMenuItem,
this.toolStripSeparator26,
this.showBGToolStripMenuItem,
this.showPlayfieldToolStripMenuItem,
this.showPlayer1ToolStripMenuItem,
this.showPlayer2ToolStripMenuItem,
this.showMissle1ToolStripMenuItem,
this.showMissle2ToolStripMenuItem,
this.showBallToolStripMenuItem});
this.atariToolStripMenuItem.Name = "atariToolStripMenuItem";
this.atariToolStripMenuItem.Size = new System.Drawing.Size(53, 24);
this.atariToolStripMenuItem.Text = "&Atari";
@ -2208,14 +2211,15 @@
// gBToolStripMenuItem
//
this.gBToolStripMenuItem.DropDownItems.AddRange(new System.Windows.Forms.ToolStripItem[] {
this.forceDMGModeToolStripMenuItem,
this.gBAInCGBModeToolStripMenuItem,
this.multicartCompatibilityToolStripMenuItem,
this.toolStripSeparator8,
this.changeDMGPalettesToolStripMenuItem,
this.loadGBInSGBToolStripMenuItem1,
this.toolStripSeparator28,
this.gPUViewerToolStripMenuItem});
this.forceDMGModeToolStripMenuItem,
this.gBAInCGBModeToolStripMenuItem,
this.multicartCompatibilityToolStripMenuItem,
this.toolStripSeparator8,
this.changeDMGPalettesToolStripMenuItem,
this.loadGBInSGBToolStripMenuItem1,
this.toolStripSeparator28,
this.gPUViewerToolStripMenuItem,
this.GBgameGenieCodesToolStripMenuItem});
this.gBToolStripMenuItem.Name = "gBToolStripMenuItem";
this.gBToolStripMenuItem.Size = new System.Drawing.Size(40, 24);
this.gBToolStripMenuItem.Text = "&GB";
@ -2224,59 +2228,66 @@
// forceDMGModeToolStripMenuItem
//
this.forceDMGModeToolStripMenuItem.Name = "forceDMGModeToolStripMenuItem";
this.forceDMGModeToolStripMenuItem.Size = new System.Drawing.Size(231, 24);
this.forceDMGModeToolStripMenuItem.Size = new System.Drawing.Size(280, 24);
this.forceDMGModeToolStripMenuItem.Text = "Force DMG Mode";
this.forceDMGModeToolStripMenuItem.Click += new System.EventHandler(this.forceDMGModeToolStripMenuItem_Click);
//
// gBAInCGBModeToolStripMenuItem
//
this.gBAInCGBModeToolStripMenuItem.Name = "gBAInCGBModeToolStripMenuItem";
this.gBAInCGBModeToolStripMenuItem.Size = new System.Drawing.Size(231, 24);
this.gBAInCGBModeToolStripMenuItem.Size = new System.Drawing.Size(280, 24);
this.gBAInCGBModeToolStripMenuItem.Text = "GBA in CGB mode";
this.gBAInCGBModeToolStripMenuItem.Click += new System.EventHandler(this.gBAInCGBModeToolStripMenuItem_Click);
//
// multicartCompatibilityToolStripMenuItem
//
this.multicartCompatibilityToolStripMenuItem.Name = "multicartCompatibilityToolStripMenuItem";
this.multicartCompatibilityToolStripMenuItem.Size = new System.Drawing.Size(231, 24);
this.multicartCompatibilityToolStripMenuItem.Size = new System.Drawing.Size(280, 24);
this.multicartCompatibilityToolStripMenuItem.Text = "Multicart Compatibility";
this.multicartCompatibilityToolStripMenuItem.Click += new System.EventHandler(this.multicartCompatibilityToolStripMenuItem_Click);
//
// toolStripSeparator8
//
this.toolStripSeparator8.Name = "toolStripSeparator8";
this.toolStripSeparator8.Size = new System.Drawing.Size(228, 6);
this.toolStripSeparator8.Size = new System.Drawing.Size(277, 6);
//
// changeDMGPalettesToolStripMenuItem
//
this.changeDMGPalettesToolStripMenuItem.Name = "changeDMGPalettesToolStripMenuItem";
this.changeDMGPalettesToolStripMenuItem.Size = new System.Drawing.Size(231, 24);
this.changeDMGPalettesToolStripMenuItem.Size = new System.Drawing.Size(280, 24);
this.changeDMGPalettesToolStripMenuItem.Text = "Change Palettes...";
this.changeDMGPalettesToolStripMenuItem.Click += new System.EventHandler(this.changeDMGPalettesToolStripMenuItem_Click);
//
// loadGBInSGBToolStripMenuItem1
//
this.loadGBInSGBToolStripMenuItem1.Name = "loadGBInSGBToolStripMenuItem1";
this.loadGBInSGBToolStripMenuItem1.Size = new System.Drawing.Size(231, 24);
this.loadGBInSGBToolStripMenuItem1.Size = new System.Drawing.Size(280, 24);
this.loadGBInSGBToolStripMenuItem1.Text = "Load GB in SGB";
this.loadGBInSGBToolStripMenuItem1.Click += new System.EventHandler(this.loadGBInSGBToolStripMenuItem1_Click);
//
// toolStripSeparator28
//
this.toolStripSeparator28.Name = "toolStripSeparator28";
this.toolStripSeparator28.Size = new System.Drawing.Size(228, 6);
this.toolStripSeparator28.Size = new System.Drawing.Size(277, 6);
//
// gPUViewerToolStripMenuItem
//
this.gPUViewerToolStripMenuItem.Name = "gPUViewerToolStripMenuItem";
this.gPUViewerToolStripMenuItem.Size = new System.Drawing.Size(231, 24);
this.gPUViewerToolStripMenuItem.Size = new System.Drawing.Size(280, 24);
this.gPUViewerToolStripMenuItem.Text = "GPU Viewer";
this.gPUViewerToolStripMenuItem.Click += new System.EventHandler(this.gPUViewerToolStripMenuItem_Click);
//
// GBgameGenieCodesToolStripMenuItem
//
this.GBgameGenieCodesToolStripMenuItem.Name = "GBgameGenieCodesToolStripMenuItem";
this.GBgameGenieCodesToolStripMenuItem.Size = new System.Drawing.Size(280, 24);
this.GBgameGenieCodesToolStripMenuItem.Text = "&Game Genie Encoder/Decoder";
this.GBgameGenieCodesToolStripMenuItem.Click += new System.EventHandler(this.GBgameGenieCodesToolStripMenuItem_Click);
//
// gBAToolStripMenuItem
//
this.gBAToolStripMenuItem.DropDownItems.AddRange(new System.Windows.Forms.ToolStripItem[] {
this.gPUViewToolStripMenuItem});
this.gPUViewToolStripMenuItem});
this.gBAToolStripMenuItem.Name = "gBAToolStripMenuItem";
this.gBAToolStripMenuItem.Size = new System.Drawing.Size(50, 24);
this.gBAToolStripMenuItem.Text = "GBA";
@ -2291,12 +2302,12 @@
// sNESToolStripMenuItem
//
this.sNESToolStripMenuItem.DropDownItems.AddRange(new System.Windows.Forms.ToolStripItem[] {
this.displayToolStripMenuItem,
this.toolStripSeparator18,
this.graphicsDebuggerToolStripMenuItem,
this.loadGBInSGBToolStripMenuItem,
this.SNESgameGenieCodesToolStripMenuItem,
this.miSnesOptions});
this.displayToolStripMenuItem,
this.toolStripSeparator18,
this.graphicsDebuggerToolStripMenuItem,
this.loadGBInSGBToolStripMenuItem,
this.SNESgameGenieCodesToolStripMenuItem,
this.miSnesOptions});
this.sNESToolStripMenuItem.Name = "sNESToolStripMenuItem";
this.sNESToolStripMenuItem.Size = new System.Drawing.Size(56, 24);
this.sNESToolStripMenuItem.Text = "&SNES";
@ -2305,14 +2316,14 @@
// displayToolStripMenuItem
//
this.displayToolStripMenuItem.DropDownItems.AddRange(new System.Windows.Forms.ToolStripItem[] {
this.bG0ToolStripMenuItem,
this.bG1ToolStripMenuItem,
this.bG2ToolStripMenuItem,
this.bG3ToolStripMenuItem,
this.oBJ0ToolStripMenuItem,
this.oBJ1ToolStripMenuItem,
this.oBJ2ToolStripMenuItem,
this.oBJ3ToolStripMenuItem});
this.bG0ToolStripMenuItem,
this.bG1ToolStripMenuItem,
this.bG2ToolStripMenuItem,
this.bG3ToolStripMenuItem,
this.oBJ0ToolStripMenuItem,
this.oBJ1ToolStripMenuItem,
this.oBJ2ToolStripMenuItem,
this.oBJ3ToolStripMenuItem});
this.displayToolStripMenuItem.Name = "displayToolStripMenuItem";
this.displayToolStripMenuItem.Size = new System.Drawing.Size(280, 24);
this.displayToolStripMenuItem.Text = "Display";
@ -2411,7 +2422,7 @@
// colecoToolStripMenuItem
//
this.colecoToolStripMenuItem.DropDownItems.AddRange(new System.Windows.Forms.ToolStripItem[] {
this.skipBIOSIntroToolStripMenuItem});
this.skipBIOSIntroToolStripMenuItem});
this.colecoToolStripMenuItem.Name = "colecoToolStripMenuItem";
this.colecoToolStripMenuItem.Size = new System.Drawing.Size(67, 24);
this.colecoToolStripMenuItem.Text = "&Coleco";
@ -2427,9 +2438,9 @@
// helpToolStripMenuItem
//
this.helpToolStripMenuItem.DropDownItems.AddRange(new System.Windows.Forms.ToolStripItem[] {
this.helpToolStripMenuItem1,
this.forumsToolStripMenuItem,
this.aboutToolStripMenuItem});
this.helpToolStripMenuItem1,
this.forumsToolStripMenuItem,
this.aboutToolStripMenuItem});
this.helpToolStripMenuItem.Name = "helpToolStripMenuItem";
this.helpToolStripMenuItem.Size = new System.Drawing.Size(53, 24);
this.helpToolStripMenuItem.Text = "&Help";
@ -2461,26 +2472,26 @@
// StatusSlot0
//
this.StatusSlot0.Items.AddRange(new System.Windows.Forms.ToolStripItem[] {
this.DumpStatus,
this.EmuStatus,
this.PlayRecordStatus,
this.PauseStrip,
this.RebootStatusBarIcon,
this.AVIStatusLabel,
this.StatusBarLedLight,
this.toolStripStatusLabel1,
this.StatusSlot1,
this.StatusSlot2,
this.StatusSlot3,
this.StatusSlot4,
this.StatusSlot5,
this.StatusSlot6,
this.StatusSlot7,
this.StatusSlot8,
this.StatusSlot9,
this.StatusSlot10,
this.CheatStatus,
this.KeyPriorityStatusBarLabel});
this.DumpStatus,
this.EmuStatus,
this.PlayRecordStatus,
this.PauseStrip,
this.RebootStatusBarIcon,
this.AVIStatusLabel,
this.StatusBarLedLight,
this.toolStripStatusLabel1,
this.StatusSlot1,
this.StatusSlot2,
this.StatusSlot3,
this.StatusSlot4,
this.StatusSlot5,
this.StatusSlot6,
this.StatusSlot7,
this.StatusSlot8,
this.StatusSlot9,
this.StatusSlot10,
this.CheatStatus,
this.KeyPriorityStatusBarLabel});
this.StatusSlot0.Location = new System.Drawing.Point(0, 383);
this.StatusSlot0.Name = "StatusSlot0";
this.StatusSlot0.ShowItemToolTips = true;
@ -2649,27 +2660,27 @@
// contextMenuStrip1
//
this.contextMenuStrip1.Items.AddRange(new System.Windows.Forms.ToolStripItem[] {
this.cmiOpenRom,
this.cmiLoadLastRom,
this.toolStripSeparator_afterRomLoading,
this.cmiRecordMovie,
this.cmiPlayMovie,
this.cmiRestartMovie,
this.cmiStopMovie,
this.cmiLoadLastMovie,
this.cmiMakeMovieBackup,
this.ContextMenuStopMovieNoSaving,
this.cmiViewSubtitles,
this.cmiAddSubtitle,
this.cmiViewComments,
this.saveMovieToolStripMenuItem1,
this.toolStripSeparator_afterMovie,
this.cmiUndoSavestate,
this.cmiSeparator20,
this.cmiScreenshot,
this.cmiScreenshotClipboard,
this.cmiCloseRom,
this.cmiShowMenu});
this.cmiOpenRom,
this.cmiLoadLastRom,
this.toolStripSeparator_afterRomLoading,
this.cmiRecordMovie,
this.cmiPlayMovie,
this.cmiRestartMovie,
this.cmiStopMovie,
this.cmiLoadLastMovie,
this.cmiMakeMovieBackup,
this.ContextMenuStopMovieNoSaving,
this.cmiViewSubtitles,
this.cmiAddSubtitle,
this.cmiViewComments,
this.saveMovieToolStripMenuItem1,
this.toolStripSeparator_afterMovie,
this.cmiUndoSavestate,
this.cmiSeparator20,
this.cmiScreenshot,
this.cmiScreenshotClipboard,
this.cmiCloseRom,
this.cmiShowMenu});
this.contextMenuStrip1.Name = "contextMenuStrip1";
this.contextMenuStrip1.Size = new System.Drawing.Size(257, 454);
this.contextMenuStrip1.Closing += new System.Windows.Forms.ToolStripDropDownClosingEventHandler(this.contextMenuStrip1_Closing);
@ -2828,6 +2839,13 @@
this.cmiShowMenu.Text = "Show Menu";
this.cmiShowMenu.Click += new System.EventHandler(this.showMenuToolStripMenuItem_Click);
//
// GGgameGenieEncoderDecoderToolStripMenuItem
//
this.GGgameGenieEncoderDecoderToolStripMenuItem.Name = "GGgameGenieEncoderDecoderToolStripMenuItem";
this.GGgameGenieEncoderDecoderToolStripMenuItem.Size = new System.Drawing.Size(289, 24);
this.GGgameGenieEncoderDecoderToolStripMenuItem.Text = "&Game Genie Encoder/Decoder";
this.GGgameGenieEncoderDecoderToolStripMenuItem.Click += new System.EventHandler(this.GGgameGenieEncoderDecoderToolStripMenuItem_Click);
//
// MainForm
//
this.AutoScaleDimensions = new System.Drawing.SizeF(8F, 16F);
@ -3165,6 +3183,8 @@
private System.Windows.Forms.ToolStripMenuItem ContextMenuStopMovieNoSaving;
private System.Windows.Forms.ToolStripMenuItem stopMovieWithoutSavingToolStripMenuItem;
private System.Windows.Forms.ToolStripMenuItem SNESgameGenieCodesToolStripMenuItem;
private System.Windows.Forms.ToolStripMenuItem GBgameGenieCodesToolStripMenuItem;
private System.Windows.Forms.ToolStripMenuItem GGgameGenieEncoderDecoderToolStripMenuItem;
}
}

View File

@ -1651,6 +1651,7 @@ namespace BizHawk.MultiClient
showClippedRegionsToolStripMenuItem.Visible = true;
highlightActiveDisplayRegionToolStripMenuItem.Visible = true;
GGgameGenieEncoderDecoderToolStripMenuItem.Visible = true;
}
else
{
@ -1660,6 +1661,7 @@ namespace BizHawk.MultiClient
showClippedRegionsToolStripMenuItem.Visible = false;
highlightActiveDisplayRegionToolStripMenuItem.Visible = false;
GGgameGenieEncoderDecoderToolStripMenuItem.Visible = false;
}
}

View File

@ -3318,6 +3318,11 @@ namespace BizHawk.MultiClient
SNESGameGenie gg = new SNESGameGenie();
gg.Show();
}
else if ((Global.Emulator.SystemId == "GB") || (Global.Game.System == "GG"))
{
GBGameGenie gg = new GBGameGenie();
gg.Show();
}
}
public void LoadSNESGraphicsDebugger()
@ -5062,6 +5067,16 @@ namespace BizHawk.MultiClient
LoadGameGenieEC();
}
private void GBgameGenieCodesToolStripMenuItem_Click(object sender, EventArgs e)
{
LoadGameGenieEC();
}
private void GGgameGenieEncoderDecoderToolStripMenuItem_Click(object sender, EventArgs e)
{
LoadGameGenieEC();
}
}
}

View File

@ -140,7 +140,7 @@
// AddCheat
//
this.AddCheat.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Right)));
this.AddCheat.Location = new System.Drawing.Point(268, 257);
this.AddCheat.Location = new System.Drawing.Point(268, 276);
this.AddCheat.Margin = new System.Windows.Forms.Padding(4);
this.AddCheat.Name = "AddCheat";
this.AddCheat.Size = new System.Drawing.Size(92, 26);
@ -363,7 +363,7 @@
this.groupBox1.Margin = new System.Windows.Forms.Padding(4);
this.groupBox1.Name = "groupBox1";
this.groupBox1.Padding = new System.Windows.Forms.Padding(4);
this.groupBox1.Size = new System.Drawing.Size(183, 114);
this.groupBox1.Size = new System.Drawing.Size(183, 101);
this.groupBox1.TabIndex = 5;
this.groupBox1.TabStop = false;
//
@ -390,7 +390,7 @@
// ClearButton
//
this.ClearButton.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right)));
this.ClearButton.Location = new System.Drawing.Point(288, 201);
this.ClearButton.Location = new System.Drawing.Point(288, 210);
this.ClearButton.Margin = new System.Windows.Forms.Padding(4);
this.ClearButton.Name = "ClearButton";
this.ClearButton.Size = new System.Drawing.Size(72, 28);

View File

@ -8,8 +8,8 @@ namespace BizHawk.MultiClient
{
public partial class SNESGameGenie : Form
{
public int Address = 0x000000;
public int Value = 0x00;
public int Address = -1;
public int Value = -1;
private readonly Dictionary<char, int> GameGenieTable = new Dictionary<char, int>();
private bool Decoding = false;
private bool Encoding = false;
@ -168,6 +168,7 @@ namespace BizHawk.MultiClient
private void GameGenieCode_TextChanged(object sender, EventArgs e)
{
if (Encoding == false)
{
if (GameGenieCode.Text.Length > 0)
@ -230,8 +231,6 @@ namespace BizHawk.MultiClient
}
private void TryEnableAddCheat()
{
if (AddressBox.Text.Length == 6 && ValueBox.Text.Length == 2)
@ -308,17 +307,18 @@ namespace BizHawk.MultiClient
{
return;
}
c.address = Address;
c.value = (byte)Value;
//c.
//c.address = int.Parse(AddressBox.Text, NumberStyles.HexNumber);
//c.value = byte.Parse(ValueBox.Text, NumberStyles.HexNumber);
c.compare = null;
c.domain = Global.Emulator.MemoryDomains[6]; //Bus
c.Enable();
Global.MainForm.Cheats1.AddCheat(c);
c.address = int.Parse(AddressBox.Text, NumberStyles.HexNumber);
c.value = byte.Parse(ValueBox.Text, NumberStyles.HexNumber);
c.compare = null;
c.Enable();
for (int x = 0; x < Global.Emulator.MemoryDomains.Count; x++)
if (Global.Emulator.MemoryDomains[x].ToString() == "BUS")
{
c.domain = Global.Emulator.MemoryDomains[x]; //Bus
Global.MainForm.Cheats1.AddCheat(c);
break;
}
}
private void exitToolStripMenuItem_Click(object sender, EventArgs e)

View File

@ -46,6 +46,8 @@
this.GameboyDebuggerTool = new System.Windows.Forms.ToolStripButton();
this.SNESGraphicsDebuggerButton = new System.Windows.Forms.ToolStripButton();
this.SNESGameGenie = new System.Windows.Forms.ToolStripButton();
this.GGGameGenie = new System.Windows.Forms.ToolStripButton();
this.GBGameGenie = new System.Windows.Forms.ToolStripButton();
this.toolStrip1.SuspendLayout();
this.SuspendLayout();
//
@ -54,26 +56,28 @@
this.toolStrip1.BackColor = System.Drawing.SystemColors.Control;
this.toolStrip1.Dock = System.Windows.Forms.DockStyle.None;
this.toolStrip1.Items.AddRange(new System.Windows.Forms.ToolStripItem[] {
this.toolStripButton1,
this.toolStripButton2,
this.toolStripButton3,
this.toolStripButton4,
this.HexEditor,
this.toolStripButton5,
this.toolStripButton6,
this.TAStudioButton,
this.NESDebugger,
this.NESPPU,
this.NESNameTable,
this.NESGameGenie,
this.KeypadTool,
this.GameboyDebuggerTool,
this.SNESGraphicsDebuggerButton,
this.SNESGameGenie});
this.toolStripButton1,
this.toolStripButton2,
this.toolStripButton3,
this.toolStripButton4,
this.HexEditor,
this.toolStripButton5,
this.toolStripButton6,
this.TAStudioButton,
this.NESDebugger,
this.NESPPU,
this.NESNameTable,
this.NESGameGenie,
this.KeypadTool,
this.SNESGraphicsDebuggerButton,
this.SNESGameGenie,
this.GGGameGenie,
this.GBGameGenie,
this.GameboyDebuggerTool});
this.toolStrip1.LayoutStyle = System.Windows.Forms.ToolStripLayoutStyle.Table;
this.toolStrip1.Location = new System.Drawing.Point(12, 14);
this.toolStrip1.Name = "toolStrip1";
this.toolStrip1.Size = new System.Drawing.Size(123, 431);
this.toolStrip1.Size = new System.Drawing.Size(123, 485);
this.toolStrip1.TabIndex = 0;
this.toolStrip1.TabStop = true;
//
@ -217,14 +221,32 @@
this.SNESGameGenie.Text = "Game Genie";
this.SNESGameGenie.Click += new System.EventHandler(this.SNESGameGenie_Click);
//
// GGGameGenie
//
this.GGGameGenie.Image = ((System.Drawing.Image)(resources.GetObject("GGGameGenie.Image")));
this.GGGameGenie.ImageTransparentColor = System.Drawing.Color.Magenta;
this.GGGameGenie.Name = "GGGameGenie";
this.GGGameGenie.Size = new System.Drawing.Size(110, 24);
this.GGGameGenie.Text = "Game Genie";
this.GGGameGenie.Click += new System.EventHandler(this.GGGameGenie_Click);
//
// GBGameGenie
//
this.GBGameGenie.Image = ((System.Drawing.Image)(resources.GetObject("GBGameGenie.Image")));
this.GBGameGenie.ImageTransparentColor = System.Drawing.Color.Magenta;
this.GBGameGenie.Name = "GBGameGenie";
this.GBGameGenie.Size = new System.Drawing.Size(110, 24);
this.GBGameGenie.Text = "Game Genie";
this.GBGameGenie.Click += new System.EventHandler(this.GBGameGenie_Click);
//
// ToolBox
//
this.AutoScaleDimensions = new System.Drawing.SizeF(8F, 16F);
this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
this.ClientSize = new System.Drawing.Size(213, 416);
this.ClientSize = new System.Drawing.Size(213, 553);
this.Controls.Add(this.toolStrip1);
this.Icon = ((System.Drawing.Icon)(resources.GetObject("$this.Icon")));
this.Margin = new System.Windows.Forms.Padding(4, 4, 4, 4);
this.Margin = new System.Windows.Forms.Padding(4);
this.MinimumSize = new System.Drawing.Size(167, 68);
this.Name = "ToolBox";
this.Text = "Tool Box";
@ -255,6 +277,8 @@
private System.Windows.Forms.ToolStripButton SNESGraphicsDebuggerButton;
private System.Windows.Forms.ToolStripButton SNESGameGenie;
private System.Windows.Forms.ToolStripButton toolStripButton6;
private System.Windows.Forms.ToolStripButton GGGameGenie;
private System.Windows.Forms.ToolStripButton GBGameGenie;
}
}

View File

@ -4,6 +4,7 @@ using System.Windows.Forms;
using BizHawk.Emulation.Consoles.Nintendo;
using BizHawk.Emulation.Consoles.Calculator;
using BizHawk.Emulation.Consoles.Nintendo.SNES;
using BizHawk.Emulation.Consoles.Sega;
namespace BizHawk.MultiClient
{
@ -63,6 +64,22 @@ namespace BizHawk.MultiClient
SNESGraphicsDebuggerButton.Visible = false;
SNESGameGenie.Visible = false;
}
if (Global.Game.System == "GG")
{
GGGameGenie.Visible = true;
}
else
{
GGGameGenie.Visible = false;
}
if (Global.Game.System == "GB")
{
GBGameGenie.Visible = true;
}
else
{
GBGameGenie.Visible = false;
}
Size = new Size(Size.Width, toolStrip1.Size.Height + 50);
}
@ -148,5 +165,17 @@ namespace BizHawk.MultiClient
{
Global.MainForm.LoadGameGenieEC();
}
private void GGGameGenie_Click(object sender, EventArgs e)
{
Global.MainForm.LoadGameGenieEC();
}
private void GBGameGenie_Click(object sender, EventArgs e)
{
Global.MainForm.LoadGameGenieEC();
}
}
}

View File

@ -121,6 +121,33 @@
<value>17, 17</value>
</metadata>
<assembly alias="System.Drawing" name="System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a" />
<data name="GGGameGenie.Image" type="System.Drawing.Bitmap, System.Drawing" mimetype="application/x-microsoft.net.object.bytearray.base64">
<value>
iVBORw0KGgoAAAANSUhEUgAAACAAAAAgCAYAAABzenr0AAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8
YQUAAAAJcEhZcwAAEnQAABJ0Ad5mH3gAAAJTSURBVFhH7VQ9a1RBFB1YMIXY6uIPSAo7LbJpAhEhYKNg
OiHb5AsJCNbaiGgVCwnYpJAUKrHafokJhGhIJBKChDRaWaSKGwyBQK73zNszue+9eRujbPcuHO7MnXvP
ObPzWFdGGWVEQrqMwvANy6sbXQV1IGgjNEw8fJzC5erV/wJ57t0f98gYCREVr1arol3i9vqkty5RgbNw
ozaYMkBAM5FOovD2o5OPPEj2LzjLQFQcwDBv8l0kikYrAX4lN9MjrnnFr2EavMjggujIM4ma6GgA0K6o
KPBUCxD2uW0Ca8y5ej38AhDHM2JfaACH9t1Ym+lxKVHXL54QQl5Yb43cbCqhMQAuywNAGPucATbYt0Yj
98oZbgxxaTWCAQIGuCYXxZhRYz1lgAe2iXWQURyQAR3UX4F7osgA+eyFwJ0ygCKHuLYGrND+8W/ZUR+f
FSOtI3G718StVJInwEeoIFdW9MmLWZ9zT4BGDrH5zbtG2IevXPPa8S+5vaBmFkWuH4pM/5iSW19fJeeA
MQBBK8rnAHfOAIA1xVnzBto3O3nr5MPJvjyYWxI3+14uHR3K6M5dubk3L/LT+XNkzECYolYcSBnAxjoj
rAFLfvHbkLhtHd5w8nxL86Ji4fQcGTPkteLWRM5ATBwAWa1WCxj7eEEOPlXkYLONL4r1SqrHGiAP16zn
DLABwzYDQ8N3PF6+nvcZ/3BYM/OcsJyWG8gaQISmrLg1gY/qb3BecUSqOSYO8APthE7itgbNRPo0fNE2
WXFLks3nAXUgWBS2qRsoo4wyTDj3B3uOB2ePDD1gAAAAAElFTkSuQmCC
</value>
</data>
<data name="GBGameGenie.Image" type="System.Drawing.Bitmap, System.Drawing" mimetype="application/x-microsoft.net.object.bytearray.base64">
<value>
iVBORw0KGgoAAAANSUhEUgAAACAAAAAgCAYAAABzenr0AAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8
YQUAAAAJcEhZcwAAEnQAABJ0Ad5mH3gAAAEQSURBVFhH7ZXRDYMwDEQzC7OwArMwS2dhBXZKdQ4XOZAQ
UMDpR096KgTse1/U/Xr8BsJfs/hpmgRcz/NMGRMRvyxLFCCQsBKRIkj0EoklvURk8TAMsQSciWAmjD6T
KECuiGBuozlRwK0f4YqIvP+GwMevVRGeYzasaMtBgJREzARyIl0EyF/ARADJlYPXBQhjKrCXAIyZQE0E
1yYChEUafY7ZsKItSSG+87zX50TfY3b7Y2pKsjQnQEoCJKy7n6SgJgFKAiSsvZ5kMRboMg2fnwmElfeS
LdOwmJQEwrr7kUW5Qt6zQD/fC8imxlRF9LkWkOkHcxDZg/JxHOU9mXgpRRGLcp1ExLpch8Vdyh+Ic19s
EmBku+z2SQAAAABJRU5ErkJggg==
</value>
</data>
<data name="$this.Icon" type="System.Drawing.Icon, System.Drawing" mimetype="application/x-microsoft.net.object.bytearray.base64">
<value>
AAABAAEAEBAAAAEAIABoBAAAFgAAACgAAAAQAAAAIAAAAAEAIAAAAAAAAAAAABMLAAATCwAAAAAAAAAA