add controller info on system information

This commit is contained in:
radius 2015-07-26 15:40:29 -05:00
parent fb5f171cce
commit 9aff87f4b4
2 changed files with 15 additions and 0 deletions

View File

@ -907,6 +907,9 @@ static void menu_action_setting_disp_set_label(file_list_t* list,
case MENU_LABEL_LOAD_CONTENT_HISTORY:
*w = strlen(label);
break;
case MENU_LABEL_SYSTEM_INFORMATION:
*w = 2;
break;
}
if (type >= MENU_SETTINGS_CORE_OPTION_START)

View File

@ -302,6 +302,7 @@ static int menu_displaylist_parse_system_info(menu_displaylist_info_t *info)
char tmp2[PATH_MAX_LENGTH] = {0};
const char *tmp_string = NULL;
const frontend_ctx_driver_t *frontend = frontend_get_ptr();
settings_t *settings = config_get_ptr();
snprintf(tmp, sizeof(tmp), "%s: %s", menu_hash_to_str(MENU_LABEL_VALUE_SYSTEM_INFO_BUILD_DATE), __DATE__);
menu_list_push(info->list, tmp, "",
@ -338,6 +339,17 @@ static int menu_displaylist_parse_system_info(menu_displaylist_info_t *info)
menu_list_push(info->list, cpu_str, "", MENU_SETTINGS_CORE_INFO_NONE, 0, 0);
}
for(int controller = 0; controller < MAX_USERS; controller++)
{
if (settings->input.autoconfigured[controller])
{
snprintf(tmp, sizeof(tmp), "Port #%d device name: %s", controller, settings->input.device_names[controller]);
menu_list_push(info->list, tmp, "", MENU_SETTINGS_CORE_INFO_NONE, 0, 0);
snprintf(tmp, sizeof(tmp), "Port #%d device VID/PID: %d/%d", controller, settings->input.vid[controller], settings->input.pid[controller]);
menu_list_push(info->list, tmp, "", MENU_SETTINGS_CORE_INFO_NONE, 0, 0);
}
}
if (frontend)
{
int major = 0, minor = 0;