mirror of
https://github.com/libretro/RetroArch.git
synced 2025-04-02 10:51:52 -04:00
(UWP) Implement cpu_features_get_core_amount
This commit is contained in:
parent
87c13a4f5f
commit
6b35e8d4f6
1 changed files with 5 additions and 1 deletions
|
@ -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…
Add table
Reference in a new issue