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:
andres.delikat 2011-03-01 04:32:00 +00:00
parent 8bd9b07514
commit 6adf6c10bb
1 changed files with 22 additions and 25 deletions

View File

@ -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)