Multidisk Bundler - hack to auto-select Game Gear, also reposition/size dropdown so you can read "Game Gear"

This commit is contained in:
adelikat 2020-02-16 16:05:55 -06:00
parent 25d19cdb81
commit ae87aabbb0
2 changed files with 9 additions and 4 deletions

View File

@ -2,7 +2,7 @@
{ {
partial class MultiDiskBundler partial class MultiDiskBundler
{ {
/// <summary> /// <summary>SystemLabel
/// Required designer variable. /// Required designer variable.
/// </summary> /// </summary>
private System.ComponentModel.IContainer components = null; private System.ComponentModel.IContainer components = null;
@ -148,9 +148,9 @@
"ZXSpectrum", "ZXSpectrum",
"AmstradCPC", "AmstradCPC",
"Game Gear"}); "Game Gear"});
this.SystemDropDown.Location = new System.Drawing.Point(425, 75); this.SystemDropDown.Location = new System.Drawing.Point(405, 75);
this.SystemDropDown.Name = "SystemDropDown"; this.SystemDropDown.Name = "SystemDropDown";
this.SystemDropDown.Size = new System.Drawing.Size(69, 21); this.SystemDropDown.Size = new System.Drawing.Size(89, 21);
this.SystemDropDown.TabIndex = 14; this.SystemDropDown.TabIndex = 14;
this.SystemDropDown.SelectedIndexChanged += new System.EventHandler(this.SystemDropDown_SelectedIndexChanged); this.SystemDropDown.SelectedIndexChanged += new System.EventHandler(this.SystemDropDown_SelectedIndexChanged);
// //
@ -158,7 +158,7 @@
// //
this.SystemLabel.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right))); this.SystemLabel.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right)));
this.SystemLabel.AutoSize = true; this.SystemLabel.AutoSize = true;
this.SystemLabel.Location = new System.Drawing.Point(375, 78); this.SystemLabel.Location = new System.Drawing.Point(355, 78);
this.SystemLabel.Name = "SystemLabel"; this.SystemLabel.Name = "SystemLabel";
this.SystemLabel.Size = new System.Drawing.Size(44, 13); this.SystemLabel.Size = new System.Drawing.Size(44, 13);
this.SystemLabel.TabIndex = 15; this.SystemLabel.TabIndex = 15;

View File

@ -10,6 +10,7 @@ using System.Xml.Linq;
using BizHawk.Emulation.Common; using BizHawk.Emulation.Common;
using BizHawk.Client.Common; using BizHawk.Client.Common;
using BizHawk.Common; using BizHawk.Common;
using BizHawk.Emulation.Cores.Sega.MasterSystem;
namespace BizHawk.Client.EmuHawk namespace BizHawk.Client.EmuHawk
{ {
@ -50,6 +51,10 @@ namespace BizHawk.Client.EmuHawk
{ {
SystemDropDown.SelectedItem = Emulator.SystemId; SystemDropDown.SelectedItem = Emulator.SystemId;
} }
else if (Emulator is SMS sms && sms.IsGameGear)
{
SystemDropDown.SelectedItem = "Game Gear";
}
FileSelectors.First().Path = MainForm.CurrentlyOpenRom; FileSelectors.First().Path = MainForm.CurrentlyOpenRom;
} }