SystemInfo changes for MacOS
This commit is contained in:
@@ -62,29 +62,29 @@ namespace OpenVulkano
|
||||
return 0;
|
||||
}
|
||||
|
||||
std::string SystemInfo::GetUserName()
|
||||
const std::string& SystemInfo::GetUserName()
|
||||
{
|
||||
return "";
|
||||
}
|
||||
|
||||
std::string SystemInfo::GetHostName()
|
||||
const std::string& SystemInfo::GetHostName()
|
||||
{
|
||||
static const std::string hostName = [[NSProcessInfo processInfo].hostName UTF8String];
|
||||
return hostName;
|
||||
}
|
||||
|
||||
std::string SystemInfo::GetDeviceName()
|
||||
const std::string& SystemInfo::GetDeviceName()
|
||||
{
|
||||
static const std::string devName = "Mac"; //TODO
|
||||
return devName;
|
||||
}
|
||||
|
||||
std::string SystemInfo::GetDeviceVendorName()
|
||||
const std::string& SystemInfo::GetDeviceVendorName()
|
||||
{
|
||||
return "Apple";
|
||||
}
|
||||
|
||||
std::string SystemInfo::GetDeviceModelName()
|
||||
const std::string& SystemInfo::GetDeviceModelName()
|
||||
{
|
||||
static std::string machine;
|
||||
if (machine.empty())
|
||||
@@ -96,7 +96,7 @@ namespace OpenVulkano
|
||||
return machine;
|
||||
}
|
||||
|
||||
std::string SystemInfo::GetOsName()
|
||||
const std::string& SystemInfo::GetOsName()
|
||||
{
|
||||
return "MacOS";
|
||||
}
|
||||
@@ -113,7 +113,7 @@ namespace OpenVulkano
|
||||
return osVersion;
|
||||
}
|
||||
|
||||
std::string SystemInfo::GetOsNameHumanReadable()
|
||||
const std::string& SystemInfo::GetOsNameHumanReadable()
|
||||
{
|
||||
static const std::string hrName = fmt::format("{} {}", GetOsName(), GetOsVersion().major);
|
||||
return hrName;
|
||||
|
||||
Reference in New Issue
Block a user