CPCHawk: Menu and GUI fixes
This commit is contained in:
parent
43f401a193
commit
e0b6c67b70
|
@ -2632,7 +2632,9 @@ namespace BizHawk.Client.EmuHawk
|
|||
{
|
||||
AmstradCPCTapesSubMenu.DropDownItems.Clear();
|
||||
|
||||
if (Emulator is AmstradCPC)
|
||||
List<ToolStripMenuItem> items = new List<ToolStripMenuItem>();
|
||||
|
||||
if (Emulator is AmstradCPC)
|
||||
{
|
||||
var ams = (AmstradCPC)Emulator;
|
||||
var currSel = ams._machine.TapeMediaIndex;
|
||||
|
@ -2654,16 +2656,20 @@ namespace BizHawk.Client.EmuHawk
|
|||
ams._machine.TapeMediaIndex = dummy;
|
||||
};
|
||||
|
||||
AmstradCPCTapesSubMenu.DropDownItems.Add(menuItem);
|
||||
}
|
||||
items.Add(menuItem);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
AmstradCPCTapesSubMenu.DropDownItems.AddRange(items.ToArray());
|
||||
}
|
||||
|
||||
private void AmstradCPCDisksSubMenu_DropDownOpened(object sender, EventArgs e)
|
||||
{
|
||||
AmstradCPCDisksSubMenu.DropDownItems.Clear();
|
||||
AmstradCPCDisksSubMenu.DropDownItems.Clear();
|
||||
|
||||
if (Emulator is AmstradCPC)
|
||||
List<ToolStripMenuItem> items = new List<ToolStripMenuItem>();
|
||||
|
||||
if (Emulator is AmstradCPC)
|
||||
{
|
||||
var ams = (AmstradCPC)Emulator;
|
||||
var currSel = ams._machine.DiskMediaIndex;
|
||||
|
@ -2685,10 +2691,12 @@ namespace BizHawk.Client.EmuHawk
|
|||
ams._machine.DiskMediaIndex = dummy;
|
||||
};
|
||||
|
||||
AmstradCPCDisksSubMenu.DropDownItems.Add(menuItem);
|
||||
}
|
||||
items.Add(menuItem);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
AmstradCPCDisksSubMenu.DropDownItems.AddRange(items.ToArray());
|
||||
}
|
||||
|
||||
private void AmstradCPCNonSyncSettingsToolStripMenuItem_Click(object sender, EventArgs e)
|
||||
{
|
||||
|
|
|
@ -28,144 +28,145 @@
|
|||
/// </summary>
|
||||
private void InitializeComponent()
|
||||
{
|
||||
System.ComponentModel.ComponentResourceManager resources = new System.ComponentModel.ComponentResourceManager(typeof(AmstradCPCAudioSettings));
|
||||
this.OkBtn = new System.Windows.Forms.Button();
|
||||
this.CancelBtn = new System.Windows.Forms.Button();
|
||||
this.label1 = new System.Windows.Forms.Label();
|
||||
this.label2 = new System.Windows.Forms.Label();
|
||||
this.panTypecomboBox1 = new System.Windows.Forms.ComboBox();
|
||||
this.lblBorderInfo = new System.Windows.Forms.Label();
|
||||
this.tapeVolumetrackBar = new System.Windows.Forms.TrackBar();
|
||||
this.label3 = new System.Windows.Forms.Label();
|
||||
this.label5 = new System.Windows.Forms.Label();
|
||||
this.ayVolumetrackBar = new System.Windows.Forms.TrackBar();
|
||||
((System.ComponentModel.ISupportInitialize)(this.tapeVolumetrackBar)).BeginInit();
|
||||
((System.ComponentModel.ISupportInitialize)(this.ayVolumetrackBar)).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(247, 245);
|
||||
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(313, 245);
|
||||
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.AutoSize = true;
|
||||
this.label1.Location = new System.Drawing.Point(12, 14);
|
||||
this.label1.Name = "label1";
|
||||
this.label1.Size = new System.Drawing.Size(140, 13);
|
||||
this.label1.TabIndex = 17;
|
||||
this.label1.Text = "Amstrad CPC Audio Settings";
|
||||
//
|
||||
// label2
|
||||
//
|
||||
this.label2.AutoSize = true;
|
||||
this.label2.Location = new System.Drawing.Point(12, 172);
|
||||
this.label2.Name = "label2";
|
||||
this.label2.Size = new System.Drawing.Size(135, 13);
|
||||
this.label2.TabIndex = 23;
|
||||
this.label2.Text = "AY-3-8912 Panning Config:";
|
||||
//
|
||||
// panTypecomboBox1
|
||||
//
|
||||
this.panTypecomboBox1.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Left)
|
||||
System.ComponentModel.ComponentResourceManager resources = new System.ComponentModel.ComponentResourceManager(typeof(AmstradCPCAudioSettings));
|
||||
this.OkBtn = new System.Windows.Forms.Button();
|
||||
this.CancelBtn = new System.Windows.Forms.Button();
|
||||
this.label1 = new System.Windows.Forms.Label();
|
||||
this.label2 = new System.Windows.Forms.Label();
|
||||
this.panTypecomboBox1 = new System.Windows.Forms.ComboBox();
|
||||
this.lblBorderInfo = new System.Windows.Forms.Label();
|
||||
this.tapeVolumetrackBar = new System.Windows.Forms.TrackBar();
|
||||
this.label3 = new System.Windows.Forms.Label();
|
||||
this.label5 = new System.Windows.Forms.Label();
|
||||
this.ayVolumetrackBar = new System.Windows.Forms.TrackBar();
|
||||
((System.ComponentModel.ISupportInitialize)(this.tapeVolumetrackBar)).BeginInit();
|
||||
((System.ComponentModel.ISupportInitialize)(this.ayVolumetrackBar)).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(298, 245);
|
||||
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(364, 245);
|
||||
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.AutoSize = true;
|
||||
this.label1.Location = new System.Drawing.Point(12, 14);
|
||||
this.label1.Name = "label1";
|
||||
this.label1.Size = new System.Drawing.Size(140, 13);
|
||||
this.label1.TabIndex = 17;
|
||||
this.label1.Text = "Amstrad CPC Audio Settings";
|
||||
//
|
||||
// label2
|
||||
//
|
||||
this.label2.AutoSize = true;
|
||||
this.label2.Location = new System.Drawing.Point(12, 172);
|
||||
this.label2.Name = "label2";
|
||||
this.label2.Size = new System.Drawing.Size(135, 13);
|
||||
this.label2.TabIndex = 23;
|
||||
this.label2.Text = "AY-3-8912 Panning Config:";
|
||||
//
|
||||
// panTypecomboBox1
|
||||
//
|
||||
this.panTypecomboBox1.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Left)
|
||||
| System.Windows.Forms.AnchorStyles.Right)));
|
||||
this.panTypecomboBox1.DropDownStyle = System.Windows.Forms.ComboBoxStyle.DropDownList;
|
||||
this.panTypecomboBox1.FormattingEnabled = true;
|
||||
this.panTypecomboBox1.Location = new System.Drawing.Point(12, 188);
|
||||
this.panTypecomboBox1.Name = "panTypecomboBox1";
|
||||
this.panTypecomboBox1.Size = new System.Drawing.Size(157, 21);
|
||||
this.panTypecomboBox1.TabIndex = 22;
|
||||
//
|
||||
// lblBorderInfo
|
||||
//
|
||||
this.lblBorderInfo.Font = new System.Drawing.Font("Lucida Console", 6.75F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
|
||||
this.lblBorderInfo.Location = new System.Drawing.Point(175, 181);
|
||||
this.lblBorderInfo.Name = "lblBorderInfo";
|
||||
this.lblBorderInfo.Size = new System.Drawing.Size(196, 37);
|
||||
this.lblBorderInfo.TabIndex = 24;
|
||||
this.lblBorderInfo.Text = "Selects a particular panning configuration for the 3ch AY-3-8912 Programmable Sou" +
|
||||
this.panTypecomboBox1.DropDownStyle = System.Windows.Forms.ComboBoxStyle.DropDownList;
|
||||
this.panTypecomboBox1.FormattingEnabled = true;
|
||||
this.panTypecomboBox1.Location = new System.Drawing.Point(12, 188);
|
||||
this.panTypecomboBox1.Name = "panTypecomboBox1";
|
||||
this.panTypecomboBox1.Size = new System.Drawing.Size(151, 21);
|
||||
this.panTypecomboBox1.TabIndex = 22;
|
||||
//
|
||||
// lblBorderInfo
|
||||
//
|
||||
this.lblBorderInfo.Font = new System.Drawing.Font("Courier New", 8.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
|
||||
this.lblBorderInfo.Location = new System.Drawing.Point(175, 175);
|
||||
this.lblBorderInfo.Name = "lblBorderInfo";
|
||||
this.lblBorderInfo.Size = new System.Drawing.Size(249, 47);
|
||||
this.lblBorderInfo.TabIndex = 24;
|
||||
this.lblBorderInfo.Text = "Selects a particular panning configuration for the 3ch AY-3-8912 Programmable Sou" +
|
||||
"nd Generator";
|
||||
this.lblBorderInfo.TextAlign = System.Drawing.ContentAlignment.MiddleLeft;
|
||||
//
|
||||
// tapeVolumetrackBar
|
||||
//
|
||||
this.tapeVolumetrackBar.Location = new System.Drawing.Point(12, 60);
|
||||
this.tapeVolumetrackBar.Maximum = 100;
|
||||
this.tapeVolumetrackBar.Name = "tapeVolumetrackBar";
|
||||
this.tapeVolumetrackBar.Size = new System.Drawing.Size(359, 45);
|
||||
this.tapeVolumetrackBar.TabIndex = 25;
|
||||
//
|
||||
// label3
|
||||
//
|
||||
this.label3.AutoSize = true;
|
||||
this.label3.Location = new System.Drawing.Point(12, 44);
|
||||
this.label3.Name = "label3";
|
||||
this.label3.Size = new System.Drawing.Size(73, 13);
|
||||
this.label3.TabIndex = 26;
|
||||
this.label3.Text = "Tape Volume:";
|
||||
//
|
||||
// label5
|
||||
//
|
||||
this.label5.AutoSize = true;
|
||||
this.label5.Location = new System.Drawing.Point(12, 108);
|
||||
this.label5.Name = "label5";
|
||||
this.label5.Size = new System.Drawing.Size(98, 13);
|
||||
this.label5.TabIndex = 30;
|
||||
this.label5.Text = "AY-3-8912 Volume:";
|
||||
//
|
||||
// ayVolumetrackBar
|
||||
//
|
||||
this.ayVolumetrackBar.Location = new System.Drawing.Point(12, 124);
|
||||
this.ayVolumetrackBar.Maximum = 100;
|
||||
this.ayVolumetrackBar.Name = "ayVolumetrackBar";
|
||||
this.ayVolumetrackBar.Size = new System.Drawing.Size(359, 45);
|
||||
this.ayVolumetrackBar.TabIndex = 29;
|
||||
//
|
||||
// AmstradCPCAudioSettings
|
||||
//
|
||||
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(385, 280);
|
||||
this.Controls.Add(this.label5);
|
||||
this.Controls.Add(this.ayVolumetrackBar);
|
||||
this.Controls.Add(this.label3);
|
||||
this.Controls.Add(this.tapeVolumetrackBar);
|
||||
this.Controls.Add(this.lblBorderInfo);
|
||||
this.Controls.Add(this.label2);
|
||||
this.Controls.Add(this.panTypecomboBox1);
|
||||
this.Controls.Add(this.label1);
|
||||
this.Controls.Add(this.CancelBtn);
|
||||
this.Controls.Add(this.OkBtn);
|
||||
this.Icon = ((System.Drawing.Icon)(resources.GetObject("$this.Icon")));
|
||||
this.Name = "AmstradCPCAudioSettings";
|
||||
this.StartPosition = System.Windows.Forms.FormStartPosition.CenterParent;
|
||||
this.Text = "Audio Settings";
|
||||
this.Load += new System.EventHandler(this.IntvControllerSettings_Load);
|
||||
((System.ComponentModel.ISupportInitialize)(this.tapeVolumetrackBar)).EndInit();
|
||||
((System.ComponentModel.ISupportInitialize)(this.ayVolumetrackBar)).EndInit();
|
||||
this.ResumeLayout(false);
|
||||
this.PerformLayout();
|
||||
this.lblBorderInfo.TextAlign = System.Drawing.ContentAlignment.MiddleLeft;
|
||||
//
|
||||
// tapeVolumetrackBar
|
||||
//
|
||||
this.tapeVolumetrackBar.Location = new System.Drawing.Point(12, 60);
|
||||
this.tapeVolumetrackBar.Maximum = 100;
|
||||
this.tapeVolumetrackBar.Name = "tapeVolumetrackBar";
|
||||
this.tapeVolumetrackBar.Size = new System.Drawing.Size(412, 45);
|
||||
this.tapeVolumetrackBar.TabIndex = 25;
|
||||
//
|
||||
// label3
|
||||
//
|
||||
this.label3.AutoSize = true;
|
||||
this.label3.Location = new System.Drawing.Point(12, 44);
|
||||
this.label3.Name = "label3";
|
||||
this.label3.Size = new System.Drawing.Size(73, 13);
|
||||
this.label3.TabIndex = 26;
|
||||
this.label3.Text = "Tape Volume:";
|
||||
//
|
||||
// label5
|
||||
//
|
||||
this.label5.AutoSize = true;
|
||||
this.label5.Location = new System.Drawing.Point(12, 108);
|
||||
this.label5.Name = "label5";
|
||||
this.label5.Size = new System.Drawing.Size(98, 13);
|
||||
this.label5.TabIndex = 30;
|
||||
this.label5.Text = "AY-3-8912 Volume:";
|
||||
//
|
||||
// ayVolumetrackBar
|
||||
//
|
||||
this.ayVolumetrackBar.Location = new System.Drawing.Point(12, 124);
|
||||
this.ayVolumetrackBar.Maximum = 100;
|
||||
this.ayVolumetrackBar.Name = "ayVolumetrackBar";
|
||||
this.ayVolumetrackBar.Size = new System.Drawing.Size(412, 45);
|
||||
this.ayVolumetrackBar.TabIndex = 29;
|
||||
//
|
||||
// AmstradCPCAudioSettings
|
||||
//
|
||||
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(436, 280);
|
||||
this.Controls.Add(this.label5);
|
||||
this.Controls.Add(this.ayVolumetrackBar);
|
||||
this.Controls.Add(this.label3);
|
||||
this.Controls.Add(this.tapeVolumetrackBar);
|
||||
this.Controls.Add(this.lblBorderInfo);
|
||||
this.Controls.Add(this.label2);
|
||||
this.Controls.Add(this.panTypecomboBox1);
|
||||
this.Controls.Add(this.label1);
|
||||
this.Controls.Add(this.CancelBtn);
|
||||
this.Controls.Add(this.OkBtn);
|
||||
this.FormBorderStyle = System.Windows.Forms.FormBorderStyle.FixedToolWindow;
|
||||
this.Icon = ((System.Drawing.Icon)(resources.GetObject("$this.Icon")));
|
||||
this.Name = "AmstradCPCAudioSettings";
|
||||
this.StartPosition = System.Windows.Forms.FormStartPosition.CenterParent;
|
||||
this.Text = "Audio Settings";
|
||||
this.Load += new System.EventHandler(this.IntvControllerSettings_Load);
|
||||
((System.ComponentModel.ISupportInitialize)(this.tapeVolumetrackBar)).EndInit();
|
||||
((System.ComponentModel.ISupportInitialize)(this.ayVolumetrackBar)).EndInit();
|
||||
this.ResumeLayout(false);
|
||||
this.PerformLayout();
|
||||
|
||||
}
|
||||
|
||||
|
|
|
@ -28,170 +28,175 @@
|
|||
/// </summary>
|
||||
private void InitializeComponent()
|
||||
{
|
||||
System.ComponentModel.ComponentResourceManager resources = new System.ComponentModel.ComponentResourceManager(typeof(AmstradCPCCoreEmulationSettings));
|
||||
this.OkBtn = new System.Windows.Forms.Button();
|
||||
this.CancelBtn = new System.Windows.Forms.Button();
|
||||
this.label4 = new System.Windows.Forms.Label();
|
||||
this.MachineSelectionComboBox = new System.Windows.Forms.ComboBox();
|
||||
this.label1 = new System.Windows.Forms.Label();
|
||||
this.lblMachineNotes = new System.Windows.Forms.Label();
|
||||
this.determEmucheckBox1 = new System.Windows.Forms.CheckBox();
|
||||
this.lblAutoLoadText = new System.Windows.Forms.Label();
|
||||
this.autoLoadcheckBox1 = new System.Windows.Forms.CheckBox();
|
||||
this.lblBorderInfo = new System.Windows.Forms.Label();
|
||||
this.label2 = new System.Windows.Forms.Label();
|
||||
this.borderTypecomboBox1 = new System.Windows.Forms.ComboBox();
|
||||
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(249, 432);
|
||||
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(315, 432);
|
||||
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);
|
||||
//
|
||||
// label4
|
||||
//
|
||||
this.label4.AutoSize = true;
|
||||
this.label4.Location = new System.Drawing.Point(12, 46);
|
||||
this.label4.Name = "label4";
|
||||
this.label4.Size = new System.Drawing.Size(98, 13);
|
||||
this.label4.TabIndex = 15;
|
||||
this.label4.Text = "Emulated Machine:";
|
||||
//
|
||||
// MachineSelectionComboBox
|
||||
//
|
||||
this.MachineSelectionComboBox.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Left)
|
||||
System.ComponentModel.ComponentResourceManager resources = new System.ComponentModel.ComponentResourceManager(typeof(AmstradCPCCoreEmulationSettings));
|
||||
this.OkBtn = new System.Windows.Forms.Button();
|
||||
this.CancelBtn = new System.Windows.Forms.Button();
|
||||
this.label4 = new System.Windows.Forms.Label();
|
||||
this.MachineSelectionComboBox = new System.Windows.Forms.ComboBox();
|
||||
this.label1 = new System.Windows.Forms.Label();
|
||||
this.determEmucheckBox1 = new System.Windows.Forms.CheckBox();
|
||||
this.lblAutoLoadText = new System.Windows.Forms.Label();
|
||||
this.autoLoadcheckBox1 = new System.Windows.Forms.CheckBox();
|
||||
this.lblBorderInfo = new System.Windows.Forms.Label();
|
||||
this.label2 = new System.Windows.Forms.Label();
|
||||
this.borderTypecomboBox1 = new System.Windows.Forms.ComboBox();
|
||||
this.textBoxMachineNotes = new System.Windows.Forms.TextBox();
|
||||
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(310, 432);
|
||||
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(376, 432);
|
||||
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);
|
||||
//
|
||||
// label4
|
||||
//
|
||||
this.label4.AutoSize = true;
|
||||
this.label4.Location = new System.Drawing.Point(12, 46);
|
||||
this.label4.Name = "label4";
|
||||
this.label4.Size = new System.Drawing.Size(98, 13);
|
||||
this.label4.TabIndex = 15;
|
||||
this.label4.Text = "Emulated Machine:";
|
||||
//
|
||||
// MachineSelectionComboBox
|
||||
//
|
||||
this.MachineSelectionComboBox.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Left)
|
||||
| System.Windows.Forms.AnchorStyles.Right)));
|
||||
this.MachineSelectionComboBox.DropDownStyle = System.Windows.Forms.ComboBoxStyle.DropDownList;
|
||||
this.MachineSelectionComboBox.FormattingEnabled = true;
|
||||
this.MachineSelectionComboBox.Location = new System.Drawing.Point(12, 62);
|
||||
this.MachineSelectionComboBox.Name = "MachineSelectionComboBox";
|
||||
this.MachineSelectionComboBox.Size = new System.Drawing.Size(363, 21);
|
||||
this.MachineSelectionComboBox.TabIndex = 13;
|
||||
this.MachineSelectionComboBox.SelectionChangeCommitted += new System.EventHandler(this.MachineSelectionComboBox_SelectionChangeCommitted);
|
||||
//
|
||||
// label1
|
||||
//
|
||||
this.label1.AutoSize = true;
|
||||
this.label1.Location = new System.Drawing.Point(12, 14);
|
||||
this.label1.Name = "label1";
|
||||
this.label1.Size = new System.Drawing.Size(159, 13);
|
||||
this.label1.TabIndex = 17;
|
||||
this.label1.Text = "Amstrad CPC Emulation Settings";
|
||||
//
|
||||
// lblMachineNotes
|
||||
//
|
||||
this.lblMachineNotes.Font = new System.Drawing.Font("Lucida Console", 6.75F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
|
||||
this.lblMachineNotes.Location = new System.Drawing.Point(15, 95);
|
||||
this.lblMachineNotes.Name = "lblMachineNotes";
|
||||
this.lblMachineNotes.Size = new System.Drawing.Size(358, 204);
|
||||
this.lblMachineNotes.TabIndex = 20;
|
||||
this.lblMachineNotes.Text = "null\r\n";
|
||||
//
|
||||
// determEmucheckBox1
|
||||
//
|
||||
this.determEmucheckBox1.AutoSize = true;
|
||||
this.determEmucheckBox1.Location = new System.Drawing.Point(12, 373);
|
||||
this.determEmucheckBox1.Name = "determEmucheckBox1";
|
||||
this.determEmucheckBox1.Size = new System.Drawing.Size(135, 17);
|
||||
this.determEmucheckBox1.TabIndex = 21;
|
||||
this.determEmucheckBox1.Text = "Deterministic Emulation";
|
||||
this.determEmucheckBox1.UseVisualStyleBackColor = true;
|
||||
//
|
||||
// lblAutoLoadText
|
||||
//
|
||||
this.lblAutoLoadText.Font = new System.Drawing.Font("Lucida Console", 6.75F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
|
||||
this.lblAutoLoadText.Location = new System.Drawing.Point(172, 390);
|
||||
this.lblAutoLoadText.Name = "lblAutoLoadText";
|
||||
this.lblAutoLoadText.Size = new System.Drawing.Size(196, 30);
|
||||
this.lblAutoLoadText.TabIndex = 27;
|
||||
this.lblAutoLoadText.Text = "When enabled CPCHawk will automatically start and stop the tape whenever the tape" +
|
||||
this.MachineSelectionComboBox.DropDownStyle = System.Windows.Forms.ComboBoxStyle.DropDownList;
|
||||
this.MachineSelectionComboBox.FormattingEnabled = true;
|
||||
this.MachineSelectionComboBox.Location = new System.Drawing.Point(12, 62);
|
||||
this.MachineSelectionComboBox.Name = "MachineSelectionComboBox";
|
||||
this.MachineSelectionComboBox.Size = new System.Drawing.Size(424, 21);
|
||||
this.MachineSelectionComboBox.TabIndex = 13;
|
||||
this.MachineSelectionComboBox.SelectionChangeCommitted += new System.EventHandler(this.MachineSelectionComboBox_SelectionChangeCommitted);
|
||||
//
|
||||
// label1
|
||||
//
|
||||
this.label1.AutoSize = true;
|
||||
this.label1.Location = new System.Drawing.Point(12, 14);
|
||||
this.label1.Name = "label1";
|
||||
this.label1.Size = new System.Drawing.Size(159, 13);
|
||||
this.label1.TabIndex = 17;
|
||||
this.label1.Text = "Amstrad CPC Emulation Settings";
|
||||
//
|
||||
// determEmucheckBox1
|
||||
//
|
||||
this.determEmucheckBox1.AutoSize = true;
|
||||
this.determEmucheckBox1.Location = new System.Drawing.Point(12, 373);
|
||||
this.determEmucheckBox1.Name = "determEmucheckBox1";
|
||||
this.determEmucheckBox1.Size = new System.Drawing.Size(135, 17);
|
||||
this.determEmucheckBox1.TabIndex = 21;
|
||||
this.determEmucheckBox1.Text = "Deterministic Emulation";
|
||||
this.determEmucheckBox1.UseVisualStyleBackColor = true;
|
||||
//
|
||||
// lblAutoLoadText
|
||||
//
|
||||
this.lblAutoLoadText.Font = new System.Drawing.Font("Courier New", 8.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
|
||||
this.lblAutoLoadText.Location = new System.Drawing.Point(155, 373);
|
||||
this.lblAutoLoadText.Name = "lblAutoLoadText";
|
||||
this.lblAutoLoadText.Size = new System.Drawing.Size(281, 56);
|
||||
this.lblAutoLoadText.TabIndex = 27;
|
||||
this.lblAutoLoadText.Text = "When enabled CPCHawk will automatically start and stop the tape whenever the tape" +
|
||||
" motor state changes";
|
||||
this.lblAutoLoadText.TextAlign = System.Drawing.ContentAlignment.MiddleLeft;
|
||||
//
|
||||
// autoLoadcheckBox1
|
||||
//
|
||||
this.autoLoadcheckBox1.AutoSize = true;
|
||||
this.autoLoadcheckBox1.Location = new System.Drawing.Point(12, 396);
|
||||
this.autoLoadcheckBox1.Name = "autoLoadcheckBox1";
|
||||
this.autoLoadcheckBox1.Size = new System.Drawing.Size(128, 17);
|
||||
this.autoLoadcheckBox1.TabIndex = 26;
|
||||
this.autoLoadcheckBox1.Text = "Auto Tape Start/Stop";
|
||||
this.autoLoadcheckBox1.UseVisualStyleBackColor = true;
|
||||
//
|
||||
// lblBorderInfo
|
||||
//
|
||||
this.lblBorderInfo.Font = new System.Drawing.Font("Lucida Console", 6.75F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
|
||||
this.lblBorderInfo.Location = new System.Drawing.Point(175, 331);
|
||||
this.lblBorderInfo.Name = "lblBorderInfo";
|
||||
this.lblBorderInfo.Size = new System.Drawing.Size(196, 21);
|
||||
this.lblBorderInfo.TabIndex = 30;
|
||||
this.lblBorderInfo.Text = "null";
|
||||
this.lblBorderInfo.TextAlign = System.Drawing.ContentAlignment.MiddleLeft;
|
||||
//
|
||||
// label2
|
||||
//
|
||||
this.label2.AutoSize = true;
|
||||
this.label2.Location = new System.Drawing.Point(12, 315);
|
||||
this.label2.Name = "label2";
|
||||
this.label2.Size = new System.Drawing.Size(118, 13);
|
||||
this.label2.TabIndex = 29;
|
||||
this.label2.Text = "Rendered Border Type:";
|
||||
//
|
||||
// borderTypecomboBox1
|
||||
//
|
||||
this.borderTypecomboBox1.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Left)
|
||||
this.lblAutoLoadText.TextAlign = System.Drawing.ContentAlignment.MiddleLeft;
|
||||
//
|
||||
// autoLoadcheckBox1
|
||||
//
|
||||
this.autoLoadcheckBox1.AutoSize = true;
|
||||
this.autoLoadcheckBox1.Location = new System.Drawing.Point(12, 396);
|
||||
this.autoLoadcheckBox1.Name = "autoLoadcheckBox1";
|
||||
this.autoLoadcheckBox1.Size = new System.Drawing.Size(128, 17);
|
||||
this.autoLoadcheckBox1.TabIndex = 26;
|
||||
this.autoLoadcheckBox1.Text = "Auto Tape Start/Stop";
|
||||
this.autoLoadcheckBox1.UseVisualStyleBackColor = true;
|
||||
//
|
||||
// lblBorderInfo
|
||||
//
|
||||
this.lblBorderInfo.Font = new System.Drawing.Font("Courier New", 8.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
|
||||
this.lblBorderInfo.Location = new System.Drawing.Point(177, 315);
|
||||
this.lblBorderInfo.Name = "lblBorderInfo";
|
||||
this.lblBorderInfo.Size = new System.Drawing.Size(259, 53);
|
||||
this.lblBorderInfo.TabIndex = 30;
|
||||
this.lblBorderInfo.Text = "null";
|
||||
this.lblBorderInfo.TextAlign = System.Drawing.ContentAlignment.MiddleLeft;
|
||||
//
|
||||
// label2
|
||||
//
|
||||
this.label2.AutoSize = true;
|
||||
this.label2.Location = new System.Drawing.Point(12, 315);
|
||||
this.label2.Name = "label2";
|
||||
this.label2.Size = new System.Drawing.Size(118, 13);
|
||||
this.label2.TabIndex = 29;
|
||||
this.label2.Text = "Rendered Border Type:";
|
||||
//
|
||||
// borderTypecomboBox1
|
||||
//
|
||||
this.borderTypecomboBox1.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Left)
|
||||
| System.Windows.Forms.AnchorStyles.Right)));
|
||||
this.borderTypecomboBox1.DropDownStyle = System.Windows.Forms.ComboBoxStyle.DropDownList;
|
||||
this.borderTypecomboBox1.FormattingEnabled = true;
|
||||
this.borderTypecomboBox1.Location = new System.Drawing.Point(12, 331);
|
||||
this.borderTypecomboBox1.Name = "borderTypecomboBox1";
|
||||
this.borderTypecomboBox1.Size = new System.Drawing.Size(159, 21);
|
||||
this.borderTypecomboBox1.TabIndex = 28;
|
||||
//
|
||||
// AmstradCPCCoreEmulationSettings
|
||||
//
|
||||
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(387, 467);
|
||||
this.Controls.Add(this.lblBorderInfo);
|
||||
this.Controls.Add(this.label2);
|
||||
this.Controls.Add(this.borderTypecomboBox1);
|
||||
this.Controls.Add(this.lblAutoLoadText);
|
||||
this.Controls.Add(this.autoLoadcheckBox1);
|
||||
this.Controls.Add(this.determEmucheckBox1);
|
||||
this.Controls.Add(this.lblMachineNotes);
|
||||
this.Controls.Add(this.label1);
|
||||
this.Controls.Add(this.label4);
|
||||
this.Controls.Add(this.MachineSelectionComboBox);
|
||||
this.Controls.Add(this.CancelBtn);
|
||||
this.Controls.Add(this.OkBtn);
|
||||
this.Icon = ((System.Drawing.Icon)(resources.GetObject("$this.Icon")));
|
||||
this.Name = "AmstradCPCCoreEmulationSettings";
|
||||
this.StartPosition = System.Windows.Forms.FormStartPosition.CenterParent;
|
||||
this.Text = "Core Emulation Settings";
|
||||
this.Load += new System.EventHandler(this.IntvControllerSettings_Load);
|
||||
this.ResumeLayout(false);
|
||||
this.PerformLayout();
|
||||
this.borderTypecomboBox1.DropDownStyle = System.Windows.Forms.ComboBoxStyle.DropDownList;
|
||||
this.borderTypecomboBox1.FormattingEnabled = true;
|
||||
this.borderTypecomboBox1.Location = new System.Drawing.Point(12, 331);
|
||||
this.borderTypecomboBox1.Name = "borderTypecomboBox1";
|
||||
this.borderTypecomboBox1.Size = new System.Drawing.Size(159, 21);
|
||||
this.borderTypecomboBox1.TabIndex = 28;
|
||||
//
|
||||
// textBoxMachineNotes
|
||||
//
|
||||
this.textBoxMachineNotes.AcceptsReturn = true;
|
||||
this.textBoxMachineNotes.AcceptsTab = true;
|
||||
this.textBoxMachineNotes.Font = new System.Drawing.Font("Courier New", 8.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
|
||||
this.textBoxMachineNotes.Location = new System.Drawing.Point(12, 90);
|
||||
this.textBoxMachineNotes.Multiline = true;
|
||||
this.textBoxMachineNotes.Name = "textBoxMachineNotes";
|
||||
this.textBoxMachineNotes.ReadOnly = true;
|
||||
this.textBoxMachineNotes.ScrollBars = System.Windows.Forms.ScrollBars.Vertical;
|
||||
this.textBoxMachineNotes.Size = new System.Drawing.Size(424, 222);
|
||||
this.textBoxMachineNotes.TabIndex = 31;
|
||||
//
|
||||
// AmstradCPCCoreEmulationSettings
|
||||
//
|
||||
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(448, 467);
|
||||
this.Controls.Add(this.textBoxMachineNotes);
|
||||
this.Controls.Add(this.lblBorderInfo);
|
||||
this.Controls.Add(this.label2);
|
||||
this.Controls.Add(this.borderTypecomboBox1);
|
||||
this.Controls.Add(this.lblAutoLoadText);
|
||||
this.Controls.Add(this.autoLoadcheckBox1);
|
||||
this.Controls.Add(this.determEmucheckBox1);
|
||||
this.Controls.Add(this.label1);
|
||||
this.Controls.Add(this.label4);
|
||||
this.Controls.Add(this.MachineSelectionComboBox);
|
||||
this.Controls.Add(this.CancelBtn);
|
||||
this.Controls.Add(this.OkBtn);
|
||||
this.FormBorderStyle = System.Windows.Forms.FormBorderStyle.FixedToolWindow;
|
||||
this.Icon = ((System.Drawing.Icon)(resources.GetObject("$this.Icon")));
|
||||
this.Name = "AmstradCPCCoreEmulationSettings";
|
||||
this.StartPosition = System.Windows.Forms.FormStartPosition.CenterParent;
|
||||
this.Text = "Core Emulation Settings";
|
||||
this.Load += new System.EventHandler(this.IntvControllerSettings_Load);
|
||||
this.ResumeLayout(false);
|
||||
this.PerformLayout();
|
||||
|
||||
}
|
||||
|
||||
|
@ -202,12 +207,12 @@
|
|||
private System.Windows.Forms.Label label4;
|
||||
private System.Windows.Forms.ComboBox MachineSelectionComboBox;
|
||||
private System.Windows.Forms.Label label1;
|
||||
private System.Windows.Forms.Label lblMachineNotes;
|
||||
private System.Windows.Forms.CheckBox determEmucheckBox1;
|
||||
private System.Windows.Forms.Label lblAutoLoadText;
|
||||
private System.Windows.Forms.CheckBox autoLoadcheckBox1;
|
||||
private System.Windows.Forms.Label lblBorderInfo;
|
||||
private System.Windows.Forms.Label label2;
|
||||
private System.Windows.Forms.ComboBox borderTypecomboBox1;
|
||||
}
|
||||
private System.Windows.Forms.TextBox textBoxMachineNotes;
|
||||
}
|
||||
}
|
|
@ -89,7 +89,7 @@ namespace BizHawk.Client.EmuHawk
|
|||
|
||||
private void UpdateMachineNotes(MachineType type)
|
||||
{
|
||||
lblMachineNotes.Text = CPCMachineMetaData.GetMetaString(type);
|
||||
textBoxMachineNotes.Text = CPCMachineMetaData.GetMetaString(type);
|
||||
}
|
||||
|
||||
private void borderTypecomboBox1_SelectedIndexChanged(object sender, EventArgs e)
|
||||
|
|
|
@ -28,98 +28,99 @@
|
|||
/// </summary>
|
||||
private void InitializeComponent()
|
||||
{
|
||||
System.ComponentModel.ComponentResourceManager resources = new System.ComponentModel.ComponentResourceManager(typeof(ZXSpectrumNonSyncSettings));
|
||||
this.OkBtn = new System.Windows.Forms.Button();
|
||||
this.CancelBtn = new System.Windows.Forms.Button();
|
||||
this.label1 = new System.Windows.Forms.Label();
|
||||
this.lblOSDVerbinfo = new System.Windows.Forms.Label();
|
||||
this.label4 = new System.Windows.Forms.Label();
|
||||
this.osdMessageVerbositycomboBox1 = new System.Windows.Forms.ComboBox();
|
||||
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(247, 142);
|
||||
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(313, 142);
|
||||
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.AutoSize = true;
|
||||
this.label1.Location = new System.Drawing.Point(12, 14);
|
||||
this.label1.Name = "label1";
|
||||
this.label1.Size = new System.Drawing.Size(185, 13);
|
||||
this.label1.TabIndex = 17;
|
||||
this.label1.Text = "ZX Spectrum Misc Non-Sync Settings";
|
||||
//
|
||||
// lblOSDVerbinfo
|
||||
//
|
||||
this.lblOSDVerbinfo.Font = new System.Drawing.Font("Lucida Console", 6.75F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
|
||||
this.lblOSDVerbinfo.Location = new System.Drawing.Point(175, 107);
|
||||
this.lblOSDVerbinfo.Name = "lblOSDVerbinfo";
|
||||
this.lblOSDVerbinfo.Size = new System.Drawing.Size(196, 21);
|
||||
this.lblOSDVerbinfo.TabIndex = 28;
|
||||
this.lblOSDVerbinfo.Text = "null";
|
||||
this.lblOSDVerbinfo.TextAlign = System.Drawing.ContentAlignment.MiddleLeft;
|
||||
//
|
||||
// label4
|
||||
//
|
||||
this.label4.AutoSize = true;
|
||||
this.label4.Location = new System.Drawing.Point(12, 91);
|
||||
this.label4.Name = "label4";
|
||||
this.label4.Size = new System.Drawing.Size(125, 13);
|
||||
this.label4.TabIndex = 27;
|
||||
this.label4.Text = "OSD Message Verbosity:";
|
||||
//
|
||||
// osdMessageVerbositycomboBox1
|
||||
//
|
||||
this.osdMessageVerbositycomboBox1.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Left)
|
||||
System.ComponentModel.ComponentResourceManager resources = new System.ComponentModel.ComponentResourceManager(typeof(AmstradCPCNonSyncSettings));
|
||||
this.OkBtn = new System.Windows.Forms.Button();
|
||||
this.CancelBtn = new System.Windows.Forms.Button();
|
||||
this.label1 = new System.Windows.Forms.Label();
|
||||
this.lblOSDVerbinfo = new System.Windows.Forms.Label();
|
||||
this.label4 = new System.Windows.Forms.Label();
|
||||
this.osdMessageVerbositycomboBox1 = new System.Windows.Forms.ComboBox();
|
||||
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(247, 121);
|
||||
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(313, 121);
|
||||
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.AutoSize = true;
|
||||
this.label1.Location = new System.Drawing.Point(12, 14);
|
||||
this.label1.Name = "label1";
|
||||
this.label1.Size = new System.Drawing.Size(185, 13);
|
||||
this.label1.TabIndex = 17;
|
||||
this.label1.Text = "ZX Spectrum Misc Non-Sync Settings";
|
||||
//
|
||||
// lblOSDVerbinfo
|
||||
//
|
||||
this.lblOSDVerbinfo.Font = new System.Drawing.Font("Courier New", 8.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
|
||||
this.lblOSDVerbinfo.Location = new System.Drawing.Point(175, 60);
|
||||
this.lblOSDVerbinfo.Name = "lblOSDVerbinfo";
|
||||
this.lblOSDVerbinfo.Size = new System.Drawing.Size(196, 53);
|
||||
this.lblOSDVerbinfo.TabIndex = 28;
|
||||
this.lblOSDVerbinfo.Text = "null";
|
||||
this.lblOSDVerbinfo.TextAlign = System.Drawing.ContentAlignment.MiddleLeft;
|
||||
//
|
||||
// label4
|
||||
//
|
||||
this.label4.AutoSize = true;
|
||||
this.label4.Location = new System.Drawing.Point(12, 60);
|
||||
this.label4.Name = "label4";
|
||||
this.label4.Size = new System.Drawing.Size(125, 13);
|
||||
this.label4.TabIndex = 27;
|
||||
this.label4.Text = "OSD Message Verbosity:";
|
||||
//
|
||||
// osdMessageVerbositycomboBox1
|
||||
//
|
||||
this.osdMessageVerbositycomboBox1.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Left)
|
||||
| System.Windows.Forms.AnchorStyles.Right)));
|
||||
this.osdMessageVerbositycomboBox1.DropDownStyle = System.Windows.Forms.ComboBoxStyle.DropDownList;
|
||||
this.osdMessageVerbositycomboBox1.FormattingEnabled = true;
|
||||
this.osdMessageVerbositycomboBox1.Location = new System.Drawing.Point(12, 107);
|
||||
this.osdMessageVerbositycomboBox1.Name = "osdMessageVerbositycomboBox1";
|
||||
this.osdMessageVerbositycomboBox1.Size = new System.Drawing.Size(157, 21);
|
||||
this.osdMessageVerbositycomboBox1.TabIndex = 26;
|
||||
this.osdMessageVerbositycomboBox1.SelectionChangeCommitted += new System.EventHandler(this.OSDComboBox_SelectionChangeCommitted);
|
||||
//
|
||||
// ZXSpectrumNonSyncSettings
|
||||
//
|
||||
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(385, 177);
|
||||
this.Controls.Add(this.lblOSDVerbinfo);
|
||||
this.Controls.Add(this.label4);
|
||||
this.Controls.Add(this.osdMessageVerbositycomboBox1);
|
||||
this.Controls.Add(this.label1);
|
||||
this.Controls.Add(this.CancelBtn);
|
||||
this.Controls.Add(this.OkBtn);
|
||||
this.Icon = ((System.Drawing.Icon)(resources.GetObject("$this.Icon")));
|
||||
this.Name = "ZXSpectrumNonSyncSettings";
|
||||
this.StartPosition = System.Windows.Forms.FormStartPosition.CenterParent;
|
||||
this.Text = "Other Non-Sync Settings";
|
||||
this.Load += new System.EventHandler(this.IntvControllerSettings_Load);
|
||||
this.ResumeLayout(false);
|
||||
this.PerformLayout();
|
||||
this.osdMessageVerbositycomboBox1.DropDownStyle = System.Windows.Forms.ComboBoxStyle.DropDownList;
|
||||
this.osdMessageVerbositycomboBox1.FormattingEnabled = true;
|
||||
this.osdMessageVerbositycomboBox1.Location = new System.Drawing.Point(12, 76);
|
||||
this.osdMessageVerbositycomboBox1.Name = "osdMessageVerbositycomboBox1";
|
||||
this.osdMessageVerbositycomboBox1.Size = new System.Drawing.Size(157, 21);
|
||||
this.osdMessageVerbositycomboBox1.TabIndex = 26;
|
||||
this.osdMessageVerbositycomboBox1.SelectionChangeCommitted += new System.EventHandler(this.OSDComboBox_SelectionChangeCommitted);
|
||||
//
|
||||
// AmstradCPCNonSyncSettings
|
||||
//
|
||||
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(385, 156);
|
||||
this.Controls.Add(this.lblOSDVerbinfo);
|
||||
this.Controls.Add(this.label4);
|
||||
this.Controls.Add(this.osdMessageVerbositycomboBox1);
|
||||
this.Controls.Add(this.label1);
|
||||
this.Controls.Add(this.CancelBtn);
|
||||
this.Controls.Add(this.OkBtn);
|
||||
this.FormBorderStyle = System.Windows.Forms.FormBorderStyle.FixedToolWindow;
|
||||
this.Icon = ((System.Drawing.Icon)(resources.GetObject("$this.Icon")));
|
||||
this.Name = "AmstradCPCNonSyncSettings";
|
||||
this.StartPosition = System.Windows.Forms.FormStartPosition.CenterParent;
|
||||
this.Text = "Other Non-Sync Settings";
|
||||
this.Load += new System.EventHandler(this.IntvControllerSettings_Load);
|
||||
this.ResumeLayout(false);
|
||||
this.PerformLayout();
|
||||
|
||||
}
|
||||
|
||||
|
|
|
@ -28,125 +28,126 @@
|
|||
/// </summary>
|
||||
private void InitializeComponent()
|
||||
{
|
||||
System.ComponentModel.ComponentResourceManager resources = new System.ComponentModel.ComponentResourceManager(typeof(AmstradCPCPokeMemory));
|
||||
this.OkBtn = new System.Windows.Forms.Button();
|
||||
this.CancelBtn = new System.Windows.Forms.Button();
|
||||
this.label1 = new System.Windows.Forms.Label();
|
||||
this.label4 = new System.Windows.Forms.Label();
|
||||
this.label2 = new System.Windows.Forms.Label();
|
||||
this.numericUpDownAddress = new System.Windows.Forms.NumericUpDown();
|
||||
this.label3 = new System.Windows.Forms.Label();
|
||||
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.AutoSize = true;
|
||||
this.label1.Location = new System.Drawing.Point(12, 14);
|
||||
this.label1.Name = "label1";
|
||||
this.label1.Size = new System.Drawing.Size(273, 13);
|
||||
this.label1.TabIndex = 17;
|
||||
this.label1.Text = "Enter an address to POKE along with a single byte value";
|
||||
//
|
||||
// label4
|
||||
//
|
||||
this.label4.AutoSize = true;
|
||||
this.label4.Location = new System.Drawing.Point(12, 52);
|
||||
this.label4.Name = "label4";
|
||||
this.label4.Size = new System.Drawing.Size(93, 13);
|
||||
this.label4.TabIndex = 27;
|
||||
this.label4.Text = "Address (0-65535)";
|
||||
//
|
||||
// label2
|
||||
//
|
||||
this.label2.AutoSize = true;
|
||||
this.label2.Location = new System.Drawing.Point(12, 27);
|
||||
this.label2.Name = "label2";
|
||||
this.label2.Size = new System.Drawing.Size(254, 13);
|
||||
this.label2.TabIndex = 29;
|
||||
this.label2.Text = "(This will always target the 64K RAM address space)";
|
||||
//
|
||||
// numericUpDownAddress
|
||||
//
|
||||
this.numericUpDownAddress.Location = new System.Drawing.Point(15, 69);
|
||||
this.numericUpDownAddress.Maximum = new decimal(new int[] {
|
||||
System.ComponentModel.ComponentResourceManager resources = new System.ComponentModel.ComponentResourceManager(typeof(AmstradCPCPokeMemory));
|
||||
this.OkBtn = new System.Windows.Forms.Button();
|
||||
this.CancelBtn = new System.Windows.Forms.Button();
|
||||
this.label1 = new System.Windows.Forms.Label();
|
||||
this.label4 = new System.Windows.Forms.Label();
|
||||
this.label2 = new System.Windows.Forms.Label();
|
||||
this.numericUpDownAddress = new System.Windows.Forms.NumericUpDown();
|
||||
this.label3 = new System.Windows.Forms.Label();
|
||||
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.AutoSize = true;
|
||||
this.label1.Location = new System.Drawing.Point(12, 14);
|
||||
this.label1.Name = "label1";
|
||||
this.label1.Size = new System.Drawing.Size(273, 13);
|
||||
this.label1.TabIndex = 17;
|
||||
this.label1.Text = "Enter an address to POKE along with a single byte value";
|
||||
//
|
||||
// label4
|
||||
//
|
||||
this.label4.AutoSize = true;
|
||||
this.label4.Location = new System.Drawing.Point(12, 52);
|
||||
this.label4.Name = "label4";
|
||||
this.label4.Size = new System.Drawing.Size(93, 13);
|
||||
this.label4.TabIndex = 27;
|
||||
this.label4.Text = "Address (0-65535)";
|
||||
//
|
||||
// label2
|
||||
//
|
||||
this.label2.AutoSize = true;
|
||||
this.label2.Location = new System.Drawing.Point(12, 27);
|
||||
this.label2.Name = "label2";
|
||||
this.label2.Size = new System.Drawing.Size(254, 13);
|
||||
this.label2.TabIndex = 29;
|
||||
this.label2.Text = "(This will always target the 64K RAM address space)";
|
||||
//
|
||||
// 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.AutoSize = true;
|
||||
this.label3.Location = new System.Drawing.Point(123, 52);
|
||||
this.label3.Name = "label3";
|
||||
this.label3.Size = new System.Drawing.Size(70, 13);
|
||||
this.label3.TabIndex = 31;
|
||||
this.label3.Text = "Value (0-255)";
|
||||
//
|
||||
// numericUpDownByte
|
||||
//
|
||||
this.numericUpDownByte.Location = new System.Drawing.Point(126, 68);
|
||||
this.numericUpDownByte.Maximum = new decimal(new int[] {
|
||||
this.numericUpDownAddress.Name = "numericUpDownAddress";
|
||||
this.numericUpDownAddress.Size = new System.Drawing.Size(90, 20);
|
||||
this.numericUpDownAddress.TabIndex = 30;
|
||||
//
|
||||
// label3
|
||||
//
|
||||
this.label3.AutoSize = true;
|
||||
this.label3.Location = new System.Drawing.Point(123, 52);
|
||||
this.label3.Name = "label3";
|
||||
this.label3.Size = new System.Drawing.Size(70, 13);
|
||||
this.label3.TabIndex = 31;
|
||||
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;
|
||||
//
|
||||
// AmstradCPCPokeMemory
|
||||
//
|
||||
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.Icon = ((System.Drawing.Icon)(resources.GetObject("$this.Icon")));
|
||||
this.Name = "AmstradCPCPokeMemory";
|
||||
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();
|
||||
this.numericUpDownByte.Name = "numericUpDownByte";
|
||||
this.numericUpDownByte.Size = new System.Drawing.Size(67, 20);
|
||||
this.numericUpDownByte.TabIndex = 32;
|
||||
//
|
||||
// AmstradCPCPokeMemory
|
||||
//
|
||||
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.Icon = ((System.Drawing.Icon)(resources.GetObject("$this.Icon")));
|
||||
this.Name = "AmstradCPCPokeMemory";
|
||||
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();
|
||||
|
||||
}
|
||||
|
||||
|
|
|
@ -1,5 +1,6 @@
|
|||
using BizHawk.Common;
|
||||
using BizHawk.Emulation.Common;
|
||||
using System.Collections.Generic;
|
||||
using System.ComponentModel;
|
||||
using System.Text;
|
||||
|
||||
|
@ -157,8 +158,9 @@ namespace BizHawk.Emulation.Cores.Computers.AmstradCPC
|
|||
public string Media { get; set; }
|
||||
public string OtherMisc { get; set; }
|
||||
|
||||
Dictionary<string, string> Data = new Dictionary<string, string>();
|
||||
|
||||
public static CPCMachineMetaData GetMetaObject(MachineType type)
|
||||
public static CPCMachineMetaData GetMetaObject(MachineType type)
|
||||
{
|
||||
CPCMachineMetaData m = new CPCMachineMetaData();
|
||||
m.MachineType = type;
|
||||
|
@ -187,74 +189,93 @@ namespace BizHawk.Emulation.Cores.Computers.AmstradCPC
|
|||
m.Audio = "General Instruments AY-3-8912 PSG (3ch)";
|
||||
m.Media = "3\" Floppy Disk (via built-in Floppy Drive) & Cassette Tape (via external cassette player)";
|
||||
break;
|
||||
/*
|
||||
case MachineType.ZXSpectrum48:
|
||||
m.Name = "Sinclair ZX Spectrum 48K / 48K+";
|
||||
m.Description = "The original ZX Spectrum 48K RAM version. 2 years later a 'plus' version was released that had a better keyboard. ";
|
||||
m.Description += "Electronically both the 48K and + are identical, so ZXHawk treats them as the same emulated machine. ";
|
||||
m.Description += "These machines dominated the UK 8-bit home computer market throughout the 1980's so most non-128k only games are compatible.";
|
||||
m.Released = "1982 (48K) / 1984 (48K+)";
|
||||
m.CPU = "Zilog Z80A @ 3.5MHz";
|
||||
m.Memory = "16KB ROM / 48KB RAM";
|
||||
m.Video = "ULA @ 7MHz - PAL (50.08Hz Interrupt)";
|
||||
m.Audio = "Beeper (HW 1ch. / 10oct.) - Internal Speaker";
|
||||
m.Media = "Cassette Tape (via 3rd party external tape player)";
|
||||
break;
|
||||
case MachineType.ZXSpectrum128:
|
||||
m.Name = "Sinclair ZX Spectrum 128";
|
||||
m.Description = "The first Spectrum 128K machine released in Spain in 1985 and later UK in 1986. ";
|
||||
m.Description += "With an updated ROM and new memory paging system to work around the Z80's 16-bit address bus. ";
|
||||
m.Description += "The 128 shipped with a copy of the 48k ROM (that is paged in when required) and a new startup menu with the option of dropping into a '48k mode'. ";
|
||||
m.Description += "Even so, there were some compatibility issues with older Spectrum games that were written to utilise some of the previous model's intricacies. ";
|
||||
m.Description += "Many games released after 1985 supported the new AY-3-8912 PSG chip making for far superior audio. The extra memory also enabled many games to be loaded in all at once (rather than loading each level from tape when needed).";
|
||||
m.Released = "1985 / 1986";
|
||||
m.CPU = "Zilog Z80A @ 3.5469 MHz";
|
||||
m.Memory = "32KB ROM / 128KB RAM";
|
||||
m.Video = "ULA @ 7.0938MHz - PAL (50.01Hz Interrupt)";
|
||||
m.Audio = "Beeper (HW 1ch. / 10oct.) & General Instruments AY-3-8912 PSG (3ch) - RF Output";
|
||||
m.Media = "Cassette Tape (via 3rd party external tape player)";
|
||||
break;
|
||||
case MachineType.ZXSpectrum128Plus2:
|
||||
m.Name = "Sinclair ZX Spectrum +2";
|
||||
m.Description = "The first Sinclair Spectrum 128K machine that was released after Amstrad purchased Sinclair in 1986. ";
|
||||
m.Description += "Electronically it was almost identical to the 128, but with the addition of a built-in tape deck and 2 Sinclair Joystick ports.";
|
||||
m.Released = "1986";
|
||||
m.CPU = "Zilog Z80A @ 3.5469 MHz";
|
||||
m.Memory = "32KB ROM / 128KB RAM";
|
||||
m.Video = "ULA @ 7.0938MHz - PAL (50.01Hz Interrupt)";
|
||||
m.Audio = "Beeper (HW 1ch. / 10oct.) & General Instruments AY-3-8912 PSG (3ch) - RF Output";
|
||||
m.Media = "Cassette Tape (via built-in Datacorder)";
|
||||
break;
|
||||
case MachineType.ZXSpectrum128Plus2a:
|
||||
m.Name = "Sinclair ZX Spectrum +2a";
|
||||
m.Description = "The +2a looks almost identical to the +2 but is a variant of the +3 machine that was released the same year (except with the same built-in datacorder that the +2 had rather than a floppy drive). ";
|
||||
m.Description += "Memory paging again changed significantly and this (along with memory contention timing changes) caused more compatibility issues with some older games. ";
|
||||
m.Description += "Although functionally identical to the +3, it does not contain floppy disk controller.";
|
||||
m.Released = "1987";
|
||||
m.CPU = "Zilog Z80A @ 3.5469 MHz";
|
||||
m.Memory = "64KB ROM / 128KB RAM";
|
||||
m.Video = "ULA @ 7.0938MHz - PAL (50.01Hz Interrupt)";
|
||||
m.Audio = "Beeper (HW 1ch. / 10oct.) & General Instruments AY-3-8912 PSG (3ch) - RF Output";
|
||||
m.Media = "Cassette Tape (via built-in Datacorder)";
|
||||
break;
|
||||
case MachineType.ZXSpectrum128Plus3:
|
||||
m.Name = "Sinclair ZX Spectrum +3";
|
||||
m.Description = "Amstrad released the +3 the same year as the +2a, but it featured a built-in floppy drive rather than a datacorder. An external cassette player could still be connected though as in the older 48k models. ";
|
||||
m.Description += "Memory paging again changed significantly and this (along with memory contention timing changes) caused more compatibility issues with some older games. ";
|
||||
m.Description += "Currently ZXHawk does not emulate the floppy drive or floppy controller so the machine reports as a +2a on boot.";
|
||||
m.Released = "1987";
|
||||
m.CPU = "Zilog Z80A @ 3.5469 MHz";
|
||||
m.Memory = "64KB ROM / 128KB RAM";
|
||||
m.Video = "ULA @ 7.0938MHz - PAL (50.01Hz Interrupt)";
|
||||
m.Audio = "Beeper (HW 1ch. / 10oct.) & General Instruments AY-3-8912 PSG (3ch) - RF Output";
|
||||
m.Media = "3\" Floppy Disk (via built-in Floppy Drive)";
|
||||
break;
|
||||
*/
|
||||
}
|
||||
return m;
|
||||
|
||||
m.Data.Add(AmstradCPC.GetMemberName((CPCMachineMetaData c) => c.Name), m.Name.Trim());
|
||||
m.Data.Add(AmstradCPC.GetMemberName((CPCMachineMetaData c) => c.Description), m.Description.Trim());
|
||||
m.Data.Add(AmstradCPC.GetMemberName((CPCMachineMetaData c) => c.Released), m.Released.Trim());
|
||||
m.Data.Add(AmstradCPC.GetMemberName((CPCMachineMetaData c) => c.CPU), m.CPU.Trim());
|
||||
m.Data.Add(AmstradCPC.GetMemberName((CPCMachineMetaData c) => c.Memory), m.Memory.Trim());
|
||||
m.Data.Add(AmstradCPC.GetMemberName((CPCMachineMetaData c) => c.Video), m.Video.Trim());
|
||||
m.Data.Add(AmstradCPC.GetMemberName((CPCMachineMetaData c) => c.Audio), m.Audio.Trim());
|
||||
m.Data.Add(AmstradCPC.GetMemberName((CPCMachineMetaData c) => c.Media), m.Media.Trim());
|
||||
|
||||
return m;
|
||||
}
|
||||
|
||||
public static string GetMetaString(MachineType type)
|
||||
public static string GetMetaString(MachineType type)
|
||||
{
|
||||
var m = GetMetaObject(type);
|
||||
|
||||
StringBuilder sb = new StringBuilder();
|
||||
|
||||
// get longest title
|
||||
int titleLen = 0;
|
||||
foreach (var d in m.Data)
|
||||
{
|
||||
if (d.Key.Length > titleLen)
|
||||
titleLen = d.Key.Length;
|
||||
}
|
||||
|
||||
var maxDataLineLen = 40;
|
||||
|
||||
// generate layout
|
||||
foreach (var d in m.Data)
|
||||
{
|
||||
var tLen = d.Key.Length;
|
||||
var makeup = (titleLen - tLen) / 4;
|
||||
sb.Append(d.Key + ":\t");
|
||||
for (int i = 0; i < makeup; i++)
|
||||
{
|
||||
if (tLen > 4)
|
||||
sb.Append("\t");
|
||||
else
|
||||
{
|
||||
makeup--;
|
||||
sb.Append("\t");
|
||||
}
|
||||
}
|
||||
|
||||
// output the data splitting and tabbing as neccessary
|
||||
var arr = d.Value.Split(' ');
|
||||
int cnt = 0;
|
||||
|
||||
List<string> builder = new List<string>();
|
||||
string working = "";
|
||||
foreach (var s in arr)
|
||||
{
|
||||
var len = s.Length;
|
||||
if (working.Length + 1 + len > maxDataLineLen)
|
||||
{
|
||||
// new line needed
|
||||
builder.Add(working.Trim(' '));
|
||||
working = "";
|
||||
}
|
||||
working += s + " ";
|
||||
}
|
||||
|
||||
builder.Add(working.Trim(' '));
|
||||
|
||||
// output the data
|
||||
for (int i = 0; i < builder.Count; i++)
|
||||
{
|
||||
if (i != 0)
|
||||
{
|
||||
sb.Append("\t");
|
||||
sb.Append("\t");
|
||||
}
|
||||
|
||||
sb.Append(builder[i]);
|
||||
sb.Append("\r\n");
|
||||
}
|
||||
|
||||
//sb.Append("\r\n");
|
||||
}
|
||||
|
||||
return sb.ToString();
|
||||
}
|
||||
|
||||
public static string GetMetaStringOld(MachineType type)
|
||||
{
|
||||
var m = GetMetaObject(type);
|
||||
|
||||
|
|
|
@ -1,5 +1,6 @@
|
|||
using System;
|
||||
using System.Collections;
|
||||
using System.Linq.Expressions;
|
||||
|
||||
namespace BizHawk.Emulation.Cores.Computers.AmstradCPC
|
||||
{
|
||||
|
@ -49,5 +50,10 @@ namespace BizHawk.Emulation.Cores.Computers.AmstradCPC
|
|||
|
||||
return m;
|
||||
}
|
||||
}
|
||||
|
||||
public static string GetMemberName<T, TValue>(Expression<Func<T, TValue>> memberAccess)
|
||||
{
|
||||
return ((MemberExpression)memberAccess.Body).Member.Name;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue