mirror of
https://github.com/libretro/RetroArch
synced 2025-03-29 22:20:21 +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)
|
||||
{
|
||||
#if defined(_WIN32) && !defined(_XBOX) && !defined(__WINRT__)
|
||||
#if defined(_WIN32) && !defined(_XBOX)
|
||||
/* Win32 */
|
||||
SYSTEM_INFO sysinfo;
|
||||
#ifdef __WINRT__
|
||||
GetNativeSystemInfo(&sysinfo);
|
||||
#else
|
||||
GetSystemInfo(&sysinfo);
|
||||
#endif
|
||||
return sysinfo.dwNumberOfProcessors;
|
||||
#elif defined(GEKKO)
|
||||
return 1;
|
||||
|
Loading…
x
Reference in New Issue
Block a user