Add iOS device model name decoding

This commit is contained in:
Georg Hagen
2024-12-06 02:21:47 +01:00
parent 679be5fa61
commit 7908a39606
4 changed files with 174 additions and 7 deletions

View File

@@ -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()