src/mess/osd/windows/menu.c
| r3291 | r3292 | |
| 291 | 291 | const input_field_config *field; |
| 292 | 292 | const input_setting_config *setting; |
| 293 | 293 | const char *switch_name = NULL; |
| 294 | input_field_user_settings settings; |
| 295 | |
| 294 | 296 | UINT32 type; |
| 295 | 297 | |
| 296 | 298 | dlg = win_dialog_init(ui_getstring(title_string_num), NULL); |
| r3291 | r3292 | |
| 306 | 308 | if (type == ipt_name) |
| 307 | 309 | { |
| 308 | 310 | switch_name = input_field_name(field); |
| 309 | | if (win_dialog_add_combobox(dlg, switch_name, field->defvalue, storeval_inputport, (void *) field)) |
| 311 | |
| 312 | input_field_get_user_settings(field, &settings); |
| 313 | |
| 314 | if (win_dialog_add_combobox(dlg, switch_name, settings.value, storeval_inputport, (void *) field)) |
| 310 | 315 | goto done; |
| 311 | 316 | |
| 312 | 317 | for (setting = field->settinglist; setting != NULL; setting = setting->next) |