diff --git a/src/BizHawk.Client.EmuHawk/BizHawk.Client.EmuHawk.csproj b/src/BizHawk.Client.EmuHawk/BizHawk.Client.EmuHawk.csproj index fc4356980f..86ce5afcb5 100755 --- a/src/BizHawk.Client.EmuHawk/BizHawk.Client.EmuHawk.csproj +++ b/src/BizHawk.Client.EmuHawk/BizHawk.Client.EmuHawk.csproj @@ -243,9 +243,6 @@ - - - diff --git a/src/BizHawk.Client.EmuHawk/MainForm.Designer.cs b/src/BizHawk.Client.EmuHawk/MainForm.Designer.cs index f841fbd014..b0ced32df8 100644 --- a/src/BizHawk.Client.EmuHawk/MainForm.Designer.cs +++ b/src/BizHawk.Client.EmuHawk/MainForm.Designer.cs @@ -282,7 +282,6 @@ namespace BizHawk.Client.EmuHawk this.ZXSpectrumControllerConfigurationMenuItem = new BizHawk.WinForms.Controls.ToolStripMenuItemEx(); this.ZXSpectrumAudioSettingsMenuItem = new BizHawk.WinForms.Controls.ToolStripMenuItemEx(); this.ZXSpectrumNonSyncSettingsMenuItem = new BizHawk.WinForms.Controls.ToolStripMenuItemEx(); - this.ZXSpectrumPokeMemoryMenuItem = new BizHawk.WinForms.Controls.ToolStripMenuItemEx(); this.ZXSpectrumMediaMenuItem = new BizHawk.WinForms.Controls.ToolStripMenuItemEx(); this.ZXSpectrumTapesSubMenu = new BizHawk.WinForms.Controls.ToolStripMenuItemEx(); this.zxt1ToolStripMenuItem = new BizHawk.WinForms.Controls.ToolStripMenuItemEx(); @@ -1810,7 +1809,6 @@ namespace BizHawk.Client.EmuHawk this.ZXSpectrumControllerConfigurationMenuItem, this.ZXSpectrumAudioSettingsMenuItem, this.ZXSpectrumNonSyncSettingsMenuItem, - this.ZXSpectrumPokeMemoryMenuItem, this.ZXSpectrumMediaMenuItem}); this.zXSpectrumToolStripMenuItem.Text = "ZX Spectrum"; // @@ -1834,11 +1832,6 @@ namespace BizHawk.Client.EmuHawk this.ZXSpectrumNonSyncSettingsMenuItem.Text = "Non-Sync Settings"; this.ZXSpectrumNonSyncSettingsMenuItem.Click += new System.EventHandler(this.ZXSpectrumNonSyncSettingsMenuItem_Click); // - // ZXSpectrumPokeMemoryMenuItem - // - this.ZXSpectrumPokeMemoryMenuItem.Text = "POKE Memory"; - this.ZXSpectrumPokeMemoryMenuItem.Click += new System.EventHandler(this.ZXSpectrumPokeMemoryMenuItem_Click); - // // ZXSpectrumMediaMenuItem // this.ZXSpectrumMediaMenuItem.DropDownItems.AddRange(new System.Windows.Forms.ToolStripItem[] { @@ -2745,7 +2738,6 @@ namespace BizHawk.Client.EmuHawk private BizHawk.WinForms.Controls.ToolStripMenuItemEx ZXSpectrumCoreEmulationSettingsMenuItem; private BizHawk.WinForms.Controls.ToolStripMenuItemEx ZXSpectrumNonSyncSettingsMenuItem; private BizHawk.WinForms.Controls.ToolStripMenuItemEx ZXSpectrumAudioSettingsMenuItem; - private BizHawk.WinForms.Controls.ToolStripMenuItemEx ZXSpectrumPokeMemoryMenuItem; private BizHawk.WinForms.Controls.ToolStripMenuItemEx ZXSpectrumMediaMenuItem; private BizHawk.WinForms.Controls.ToolStripMenuItemEx ZXSpectrumTapesSubMenu; private BizHawk.WinForms.Controls.ToolStripMenuItemEx ZXSpectrumDisksSubMenu; diff --git a/src/BizHawk.Client.EmuHawk/MainForm.Events.cs b/src/BizHawk.Client.EmuHawk/MainForm.Events.cs index e50269d147..0cd6e1fe43 100644 --- a/src/BizHawk.Client.EmuHawk/MainForm.Events.cs +++ b/src/BizHawk.Client.EmuHawk/MainForm.Events.cs @@ -1884,15 +1884,6 @@ namespace BizHawk.Client.EmuHawk } } - private void ZXSpectrumPokeMemoryMenuItem_Click(object sender, EventArgs e) - { - if (Emulator is ZXSpectrum speccy) - { - using var form = new ZxSpectrumPokeMemory(speccy); - form.ShowDialog(); - } - } - private void ZXSpectrumMediaMenuItem_DropDownOpened(object sender, EventArgs e) { if (Emulator is ZXSpectrum speccy) diff --git a/src/BizHawk.Client.EmuHawk/config/ZXSpectrum/ZXSpectrumPokeMemory.Designer.cs b/src/BizHawk.Client.EmuHawk/config/ZXSpectrum/ZXSpectrumPokeMemory.Designer.cs deleted file mode 100644 index b44f3540e6..0000000000 --- a/src/BizHawk.Client.EmuHawk/config/ZXSpectrum/ZXSpectrumPokeMemory.Designer.cs +++ /dev/null @@ -1,151 +0,0 @@ -namespace BizHawk.Client.EmuHawk -{ - partial class ZxSpectrumPokeMemory - { - /// - /// Required designer variable. - /// - private System.ComponentModel.IContainer components = null; - - /// - /// Clean up any resources being used. - /// - /// true if managed resources should be disposed; otherwise, false. - protected override void Dispose(bool disposing) - { - if (disposing && (components != null)) - { - components.Dispose(); - } - base.Dispose(disposing); - } - - #region Windows Form Designer generated code - - /// - /// Required method for Designer support - do not modify - /// the contents of this method with the code editor. - /// - private void InitializeComponent() - { - this.OkBtn = new System.Windows.Forms.Button(); - this.CancelBtn = new System.Windows.Forms.Button(); - this.label1 = new BizHawk.WinForms.Controls.LocLabelEx(); - this.label4 = new BizHawk.WinForms.Controls.LocLabelEx(); - this.label2 = new BizHawk.WinForms.Controls.LocLabelEx(); - this.numericUpDownAddress = new System.Windows.Forms.NumericUpDown(); - this.label3 = new BizHawk.WinForms.Controls.LocLabelEx(); - this.numericUpDownByte = new System.Windows.Forms.NumericUpDown(); - ((System.ComponentModel.ISupportInitialize)(this.numericUpDownAddress)).BeginInit(); - ((System.ComponentModel.ISupportInitialize)(this.numericUpDownByte)).BeginInit(); - this.SuspendLayout(); - // - // 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(150, 109); - this.OkBtn.Name = "OkBtn"; - this.OkBtn.Size = new System.Drawing.Size(60, 23); - this.OkBtn.TabIndex = 3; - this.OkBtn.Text = "&OK"; - this.OkBtn.UseVisualStyleBackColor = true; - this.OkBtn.Click += new System.EventHandler(this.OkBtn_Click); - // - // 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(216, 109); - this.CancelBtn.Name = "CancelBtn"; - this.CancelBtn.Size = new System.Drawing.Size(60, 23); - this.CancelBtn.TabIndex = 4; - this.CancelBtn.Text = "&Cancel"; - this.CancelBtn.UseVisualStyleBackColor = true; - this.CancelBtn.Click += new System.EventHandler(this.CancelBtn_Click); - // - // label1 - // - this.label1.Location = new System.Drawing.Point(12, 14); - this.label1.Name = "label1"; - this.label1.Text = "Enter an address to POKE along with a single byte value"; - // - // label4 - // - this.label4.Location = new System.Drawing.Point(12, 52); - this.label4.Name = "label4"; - this.label4.Text = "Address (0-65535)"; - // - // label2 - // - this.label2.Location = new System.Drawing.Point(12, 27); - this.label2.Name = "label2"; - this.label2.Text = "(Address values that target ROM space will be ignored)"; - // - // numericUpDownAddress - // - this.numericUpDownAddress.Location = new System.Drawing.Point(15, 69); - this.numericUpDownAddress.Maximum = new decimal(new int[] { - 65535, - 0, - 0, - 0}); - this.numericUpDownAddress.Name = "numericUpDownAddress"; - this.numericUpDownAddress.Size = new System.Drawing.Size(90, 20); - this.numericUpDownAddress.TabIndex = 30; - // - // label3 - // - this.label3.Location = new System.Drawing.Point(123, 52); - this.label3.Name = "label3"; - this.label3.Text = "Value (0-255)"; - // - // numericUpDownByte - // - this.numericUpDownByte.Location = new System.Drawing.Point(126, 68); - this.numericUpDownByte.Maximum = new decimal(new int[] { - 255, - 0, - 0, - 0}); - this.numericUpDownByte.Name = "numericUpDownByte"; - this.numericUpDownByte.Size = new System.Drawing.Size(67, 20); - this.numericUpDownByte.TabIndex = 32; - // - // ZXSpectrumPokeMemory - // - this.AcceptButton = this.OkBtn; - this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 13F); - this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font; - this.CancelButton = this.CancelBtn; - this.ClientSize = new System.Drawing.Size(288, 144); - this.Controls.Add(this.numericUpDownByte); - this.Controls.Add(this.label3); - this.Controls.Add(this.numericUpDownAddress); - this.Controls.Add(this.label2); - this.Controls.Add(this.label4); - this.Controls.Add(this.label1); - this.Controls.Add(this.CancelBtn); - this.Controls.Add(this.OkBtn); - this.FormBorderStyle = System.Windows.Forms.FormBorderStyle.FixedToolWindow; - this.Name = "ZxSpectrumPokeMemory"; - this.StartPosition = System.Windows.Forms.FormStartPosition.CenterParent; - this.Text = "Poke Memory"; - ((System.ComponentModel.ISupportInitialize)(this.numericUpDownAddress)).EndInit(); - ((System.ComponentModel.ISupportInitialize)(this.numericUpDownByte)).EndInit(); - this.ResumeLayout(false); - this.PerformLayout(); - - } - - #endregion - - private System.Windows.Forms.Button OkBtn; - private System.Windows.Forms.Button CancelBtn; - private BizHawk.WinForms.Controls.LocLabelEx label1; - private BizHawk.WinForms.Controls.LocLabelEx label4; - private BizHawk.WinForms.Controls.LocLabelEx label2; - private System.Windows.Forms.NumericUpDown numericUpDownAddress; - private BizHawk.WinForms.Controls.LocLabelEx label3; - private System.Windows.Forms.NumericUpDown numericUpDownByte; - } -} \ No newline at end of file diff --git a/src/BizHawk.Client.EmuHawk/config/ZXSpectrum/ZXSpectrumPokeMemory.cs b/src/BizHawk.Client.EmuHawk/config/ZXSpectrum/ZXSpectrumPokeMemory.cs deleted file mode 100644 index 5a2d980c0b..0000000000 --- a/src/BizHawk.Client.EmuHawk/config/ZXSpectrum/ZXSpectrumPokeMemory.cs +++ /dev/null @@ -1,36 +0,0 @@ -using System; -using System.Windows.Forms; -using BizHawk.Emulation.Cores.Computers.SinclairSpectrum; - -namespace BizHawk.Client.EmuHawk -{ - public partial class ZxSpectrumPokeMemory : Form - { - private readonly ZXSpectrum _speccy; - - public ZxSpectrumPokeMemory(ZXSpectrum speccy) - { - _speccy = speccy; - - InitializeComponent(); - Icon = Properties.Resources.GameControllerIcon; - } - - private void OkBtn_Click(object sender, EventArgs e) - { - var addr = (ushort)numericUpDownAddress.Value; - var val = (byte)numericUpDownByte.Value; - - _speccy.PokeMemory(addr, val); - - DialogResult = DialogResult.OK; - Close(); - } - - private void CancelBtn_Click(object sender, EventArgs e) - { - DialogResult = DialogResult.Cancel; - Close(); - } - } -} diff --git a/src/BizHawk.Client.EmuHawk/config/ZXSpectrum/ZXSpectrumPokeMemory.resx b/src/BizHawk.Client.EmuHawk/config/ZXSpectrum/ZXSpectrumPokeMemory.resx deleted file mode 100644 index 1af7de150c..0000000000 --- a/src/BizHawk.Client.EmuHawk/config/ZXSpectrum/ZXSpectrumPokeMemory.resx +++ /dev/null @@ -1,120 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - text/microsoft-resx - - - 2.0 - - - System.Resources.ResXResourceReader, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 - - - System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 - - \ No newline at end of file