mirror of
https://github.com/libretro/RetroArch
synced 2025-04-07 13:23:32 +00:00
(UWP) Implement cpu_features_get_core_amount
This commit is contained in:
parent
87c13a4f5f
commit
6b35e8d4f6
@ -482,10 +482,14 @@ static void cpulist_read_from(CpuList* list, const char* filename)
|
|||||||
**/
|
**/
|
||||||
unsigned cpu_features_get_core_amount(void)
|
unsigned cpu_features_get_core_amount(void)
|
||||||
{
|
{
|
||||||
#if defined(_WIN32) && !defined(_XBOX) && !defined(__WINRT__)
|
#if defined(_WIN32) && !defined(_XBOX)
|
||||||
/* Win32 */
|
/* Win32 */
|
||||||
SYSTEM_INFO sysinfo;
|
SYSTEM_INFO sysinfo;
|
||||||
|
#ifdef __WINRT__
|
||||||
|
GetNativeSystemInfo(&sysinfo);
|
||||||
|
#else
|
||||||
GetSystemInfo(&sysinfo);
|
GetSystemInfo(&sysinfo);
|
||||||
|
#endif
|
||||||
return sysinfo.dwNumberOfProcessors;
|
return sysinfo.dwNumberOfProcessors;
|
||||||
#elif defined(GEKKO)
|
#elif defined(GEKKO)
|
||||||
return 1;
|
return 1;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user