convert SMSHawk to generic core menu

This commit is contained in:
adelikat 2020-06-20 14:11:23 -05:00
parent f1d5ef0f0f
commit 46188f977c
4 changed files with 1 additions and 67 deletions

View File

@ -227,10 +227,6 @@
this.VSInsertCoinP2MenuItem = new System.Windows.Forms.ToolStripMenuItem();
this.VSServiceSwitchMenuItem = new System.Windows.Forms.ToolStripMenuItem();
this.BarcodeReaderMenuItem = new System.Windows.Forms.ToolStripMenuItem();
this.SMSSubMenu = new System.Windows.Forms.ToolStripMenuItem();
this.SmsSettingsMenuItem = new System.Windows.Forms.ToolStripMenuItem();
this.SmsMenuSeparator = new System.Windows.Forms.ToolStripSeparator();
this.SmsVdpViewerMenuItem = new System.Windows.Forms.ToolStripMenuItem();
this.TI83SubMenu = new System.Windows.Forms.ToolStripMenuItem();
this.KeypadMenuItem = new System.Windows.Forms.ToolStripMenuItem();
this.LoadTIFileMenuItem = new System.Windows.Forms.ToolStripMenuItem();
@ -392,7 +388,6 @@
this.ConfigSubMenu,
this.ToolsSubMenu,
this.NESSubMenu,
this.SMSSubMenu,
this.TI83SubMenu,
this.A7800SubMenu,
this.GBSubMenu,
@ -2045,36 +2040,6 @@
this.BarcodeReaderMenuItem.Text = "Barcode Reader";
this.BarcodeReaderMenuItem.Click += new System.EventHandler(this.BarcodeReaderMenuItem_Click);
//
// SMSSubMenu
//
this.SMSSubMenu.DropDownItems.AddRange(new System.Windows.Forms.ToolStripItem[] {
this.SmsSettingsMenuItem,
this.SmsMenuSeparator,
this.SmsVdpViewerMenuItem});
this.SMSSubMenu.Name = "SMSSubMenu";
this.SMSSubMenu.Size = new System.Drawing.Size(39, 17);
this.SMSSubMenu.Text = "&SMS";
this.SMSSubMenu.DropDownOpened += new System.EventHandler(this.SmsSubMenu_DropDownOpened);
//
// SmsSettingsMenuItem
//
this.SmsSettingsMenuItem.Name = "SmsSettingsMenuItem";
this.SmsSettingsMenuItem.Size = new System.Drawing.Size(262, 22);
this.SmsSettingsMenuItem.Text = "Settings...";
this.SmsSettingsMenuItem.Click += new System.EventHandler(this.SmsBiosMenuItem_Click);
//
// toolStripSeparator24
//
this.SmsMenuSeparator.Name = "SmsMenuSeparator";
this.SmsMenuSeparator.Size = new System.Drawing.Size(259, 6);
//
// SMSVDPViewerToolStripMenuItem
//
this.SmsVdpViewerMenuItem.Name = "SmsVdpViewerMenuItem";
this.SmsVdpViewerMenuItem.Size = new System.Drawing.Size(262, 22);
this.SmsVdpViewerMenuItem.Text = "&VDP Viewer";
this.SmsVdpViewerMenuItem.Click += new System.EventHandler(this.SmsVdpViewerMenuItem_Click);
//
// TI83SubMenu
//
this.TI83SubMenu.DropDownItems.AddRange(new System.Windows.Forms.ToolStripItem[] {
@ -3461,7 +3426,6 @@
private System.Windows.Forms.ToolStripMenuItem ImportMoviesMenuItem;
private System.Windows.Forms.ToolStripMenuItem ForumsMenuItem;
private System.Windows.Forms.ToolStripMenuItem ScreenshotClipboardMenuItem;
private System.Windows.Forms.ToolStripMenuItem SMSSubMenu;
private System.Windows.Forms.ToolStripMenuItem ScreenshotContextMenuItem;
private System.Windows.Forms.ToolStripMenuItem A7800SubMenu;
private System.Windows.Forms.ToolStripMenuItem NESSoundChannelsMenuItem;
@ -3475,7 +3439,6 @@
private System.Windows.Forms.ToolStripMenuItem ScreenshotCaptureOSDMenuItem1;
private System.Windows.Forms.ToolStripStatusLabel RebootStatusBarIcon;
private System.Windows.Forms.ToolStripMenuItem TraceLoggerMenuItem;
private System.Windows.Forms.ToolStripSeparator SmsMenuSeparator;
private System.Windows.Forms.ToolStripMenuItem FDSControlsMenuItem;
private System.Windows.Forms.ToolStripMenuItem SaveMovieMenuItem;
private System.Windows.Forms.ToolStripMenuItem SaveMovieContextMenuItem;
@ -3520,8 +3483,6 @@
private System.Windows.Forms.ToolStripMenuItem CoresSubMenu;
private System.Windows.Forms.ToolStripMenuItem BatchRunnerMenuItem;
private System.Windows.Forms.ToolStripMenuItem DisplayConfigMenuItem;
private System.Windows.Forms.ToolStripMenuItem SmsVdpViewerMenuItem;
private System.Windows.Forms.ToolStripMenuItem SmsSettingsMenuItem;
private System.Windows.Forms.ToolStripMenuItem extensionsToolStripMenuItem;
private System.Windows.Forms.ToolStripStatusLabel CoreNameStatusBarButton;
private System.Windows.Forms.ToolStripMenuItem toolStripMenuItem6;

View File

@ -1548,21 +1548,6 @@ namespace BizHawk.Client.EmuHawk
Tools.Load<BarcodeEntry>();
}
private void SmsSubMenu_DropDownOpened(object sender, EventArgs e)
{
SmsVdpViewerMenuItem.Enabled = Tools.IsAvailable<SmsVdpViewer>();
}
private void SmsBiosMenuItem_Click(object sender, EventArgs e)
{
GenericCoreConfig.DoDialog(this, "SMS Settings");
}
private void SmsVdpViewerMenuItem_Click(object sender, EventArgs e)
{
Tools.Load<SmsVdpViewer>();
}
private void Ti83SubMenu_DropDownOpened(object sender, EventArgs e)
{
AutoloadKeypadMenuItem.Checked = Config.Ti83AutoloadKeyPad;

View File

@ -1807,7 +1807,6 @@ namespace BizHawk.Client.EmuHawk
GenericCoreSubMenu.Visible = false;
TI83SubMenu.Visible = false;
NESSubMenu.Visible = false;
SMSSubMenu.Visible = false;
GBSubMenu.Visible = false;
NDSSubMenu.Visible = false;
A7800SubMenu.Visible = false;
@ -1835,18 +1834,6 @@ namespace BizHawk.Client.EmuHawk
case "NES":
NESSubMenu.Visible = true;
break;
case "SMS":
SMSSubMenu.Text = "&SMS";
SMSSubMenu.Visible = true;
break;
case "SG":
SMSSubMenu.Text = "&SG";
SMSSubMenu.Visible = true;
break;
case "GG":
SMSSubMenu.Text = "&GG";
SMSSubMenu.Visible = true;
break;
case "GB":
case "GBC":
GBSubMenu.Visible = true;

View File

@ -9,6 +9,7 @@ using BizHawk.Emulation.Common;
namespace BizHawk.Client.EmuHawk
{
[SpecializedTool("VDP Viewer")]
public partial class SmsVdpViewer : ToolFormBase, IToolFormAutoConfig
{
[RequiredService]