mirror of https://github.com/PCSX2/pcsx2.git
DEV9: Inline if in dialog code
This commit is contained in:
parent
5d111636b4
commit
a8d1a7cba1
|
@ -62,9 +62,8 @@ void OnInitDialog()
|
|||
|
||||
gtk_combo_box_text_append_text((GtkComboBoxText*)gtk_builder_get_object(builder, "IDC_ETHDEV"), dev.c_str());
|
||||
if (config.EthApi == adapters[i].type && strcmp(adapters[i].guid.c_str(), config.Eth) == 0)
|
||||
{
|
||||
gtk_combo_box_set_active((GtkComboBox*)gtk_builder_get_object(builder, "IDC_ETHDEV"), idx);
|
||||
}
|
||||
|
||||
idx++;
|
||||
}
|
||||
|
||||
|
|
|
@ -70,11 +70,9 @@ void OnInitDialog(HWND hW)
|
|||
ComboBox_SetItemData(GetDlgItem(hW, IDC_ETHDEV), itm, i);
|
||||
char guid_char[256];
|
||||
wcstombs(guid_char, adapters[i].guid.c_str(), wcslen(adapters[i].guid.c_str()) + 1);
|
||||
//TODO, also check type
|
||||
|
||||
if (config.EthApi == adapters[i].type && strcmp(guid_char, config.Eth) == 0)
|
||||
{
|
||||
ComboBox_SetCurSel(GetDlgItem(hW, IDC_ETHDEV), itm);
|
||||
}
|
||||
}
|
||||
|
||||
SetWindowText(GetDlgItem(hW, IDC_HDDFILE), config.Hdd);
|
||||
|
|
Loading…
Reference in New Issue