Input Config Dialog - fix so that initial selection of controller type actually invokes the selected index event so that the dialog is set up to the proper controller. Also make the default (Null emulator) be SMS
This commit is contained in:
parent
8bd9b07514
commit
6adf6c10bb
|
@ -346,32 +346,29 @@ namespace BizHawk.MultiClient
|
|||
}
|
||||
private void InputConfig_Load(object sender, EventArgs e)
|
||||
{
|
||||
|
||||
if (!(Global.Emulator is NullEmulator))
|
||||
switch (Global.Game.System)
|
||||
{
|
||||
switch (Global.Game.System)
|
||||
{
|
||||
case "SMS":
|
||||
case "SG":
|
||||
case "GG":
|
||||
this.SystemComboBox.SelectedItem = 0;
|
||||
break;
|
||||
case "PCE":
|
||||
case "SGX":
|
||||
this.SystemComboBox.SelectedItem = 1;
|
||||
break;
|
||||
case "GEN":
|
||||
this.SystemComboBox.SelectedItem = 2;
|
||||
break;
|
||||
case "TI83":
|
||||
this.SystemComboBox.SelectedItem = 3;
|
||||
break;
|
||||
case "GB":
|
||||
this.SystemComboBox.SelectedItem = 4;
|
||||
break;
|
||||
default:
|
||||
break;
|
||||
}
|
||||
case "SMS":
|
||||
case "SG":
|
||||
case "GG":
|
||||
this.SystemComboBox.SelectedIndex = 0;
|
||||
break;
|
||||
case "PCE":
|
||||
case "SGX":
|
||||
this.SystemComboBox.SelectedIndex = 1;
|
||||
break;
|
||||
case "GEN":
|
||||
this.SystemComboBox.SelectedIndex = 2;
|
||||
break;
|
||||
case "TI83":
|
||||
this.SystemComboBox.SelectedIndex = 3;
|
||||
break;
|
||||
case "GB":
|
||||
this.SystemComboBox.SelectedIndex = 4;
|
||||
break;
|
||||
default:
|
||||
this.SystemComboBox.SelectedIndex = 0;
|
||||
break;
|
||||
}
|
||||
}
|
||||
private void OK_Click(object sender, EventArgs e)
|
||||
|
|
Loading…
Reference in New Issue