From 52fb43b1a7868b8f81e077e72ca47db9f8cb3ff9 Mon Sep 17 00:00:00 2001 From: hogliux Date: Mon, 31 Jul 2017 15:57:07 +0100 Subject: [PATCH] Windows: Added windows implementation for SystemStats::getDeviceDescription --- .../juce_core/native/juce_win32_SystemStats.cpp | 14 +++++++++++++- 1 file changed, 13 insertions(+), 1 deletion(-) diff --git a/modules/juce_core/native/juce_win32_SystemStats.cpp b/modules/juce_core/native/juce_win32_SystemStats.cpp index 7931d9cbaa..b2ff9e9450 100644 --- a/modules/juce_core/native/juce_win32_SystemStats.cpp +++ b/modules/juce_core/native/juce_win32_SystemStats.cpp @@ -227,7 +227,19 @@ String SystemStats::getOperatingSystemName() String SystemStats::getDeviceDescription() { - return {}; + #if WINAPI_FAMILY == WINAPI_FAMILY_DESKTOP_APP + return "Windows (Desktop)"; + #elif WINAPI_FAMILY == WINAPI_FAMILY_PC_APP + return "Windows (Store)"; + #elif WINAPI_FAMILY == WINAPI_FAMILY_PHONE_APP + return "Windows (Phone)"; + #elif WINAPI_FAMILY == WINAPI_FAMILY_SYSTEM + return "Windows (System)"; + #elif WINAPI_FAMILY == WINAPI_FAMILY_SERVER + return "Windows (Server)"; + #else + return "Windows"; + #endif } bool SystemStats::isOperatingSystem64Bit()