mirror of
https://github.com/libretro/RetroArch.git
synced 2024-11-28 10:40:39 +00:00
(System Information) Add CPU Cores
This commit is contained in:
parent
5488806108
commit
64a9cd29d3
@ -21,6 +21,7 @@
|
||||
#include <file/archive_file.h>
|
||||
#include <retro_stat.h>
|
||||
#include <string/stdstring.h>
|
||||
#include <features/features_cpu.h>
|
||||
|
||||
#include "menu_driver.h"
|
||||
#include "menu_navigation.h"
|
||||
@ -650,6 +651,15 @@ static int menu_displaylist_parse_system_info(menu_displaylist_info_t *info)
|
||||
MENU_SETTINGS_CORE_INFO_NONE, 0, 0);
|
||||
}
|
||||
|
||||
{
|
||||
char cpu_str[PATH_MAX_LENGTH];
|
||||
unsigned amount_cores = cpu_features_get_core_amount();
|
||||
|
||||
snprintf(cpu_str, sizeof(cpu_str), "CPU Cores: %d\n", amount_cores);
|
||||
menu_entries_add(info->list, cpu_str, "",
|
||||
MENU_SETTINGS_CORE_INFO_NONE, 0, 0);
|
||||
}
|
||||
|
||||
for(controller = 0; controller < MAX_USERS; controller++)
|
||||
{
|
||||
if (settings->input.autoconfigured[controller])
|
||||
|
Loading…
Reference in New Issue
Block a user