Add iOS device model name decoding
This commit is contained in:
@@ -10,6 +10,7 @@
|
||||
|
||||
#include <mach/mach.h>
|
||||
#include <os/proc.h>
|
||||
#include <sys/utsname.h>
|
||||
|
||||
#import <Foundation/NSString.h>
|
||||
#import <Foundation/NSProcessInfo.h>
|
||||
@@ -81,12 +82,14 @@ namespace OpenVulkano
|
||||
|
||||
std::string SystemInfo::GetDeviceModelName()
|
||||
{
|
||||
return ""; //TODO
|
||||
struct utsname systemInfo;
|
||||
uname(&systemInfo);
|
||||
return systemInfo.machine;
|
||||
}
|
||||
|
||||
std::string SystemInfo::GetOsName()
|
||||
{
|
||||
return ""; //TODO
|
||||
return "MacOS";
|
||||
}
|
||||
|
||||
OsVersion SystemInfo::GetOsVersion()
|
||||
|
||||
Reference in New Issue
Block a user