SystemInfo changes for iOS
This commit is contained in:
@@ -64,29 +64,29 @@ namespace OpenVulkano
|
|||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
std::string SystemInfo::GetUserName()
|
const std::string& SystemInfo::GetUserName()
|
||||||
{
|
{
|
||||||
return "";
|
return "";
|
||||||
}
|
}
|
||||||
|
|
||||||
std::string SystemInfo::GetHostName()
|
const std::string& SystemInfo::GetHostName()
|
||||||
{
|
{
|
||||||
static const std::string hostName = [[NSProcessInfo processInfo].hostName UTF8String];
|
static const std::string hostName = [[NSProcessInfo processInfo].hostName UTF8String];
|
||||||
return hostName;
|
return hostName;
|
||||||
}
|
}
|
||||||
|
|
||||||
std::string SystemInfo::GetDeviceName()
|
const std::string& SystemInfo::GetDeviceName()
|
||||||
{
|
{
|
||||||
static const std::string devName = [[[UIDevice currentDevice] name] UTF8String];
|
static const std::string devName = [[[UIDevice currentDevice] name] UTF8String];
|
||||||
return devName;
|
return devName;
|
||||||
}
|
}
|
||||||
|
|
||||||
std::string SystemInfo::GetDeviceVendorName()
|
const std::string& SystemInfo::GetDeviceVendorName()
|
||||||
{
|
{
|
||||||
return "Apple";
|
return "Apple";
|
||||||
}
|
}
|
||||||
|
|
||||||
std::string SystemInfo::GetDeviceModelName()
|
const std::string& SystemInfo::GetDeviceModelName()
|
||||||
{
|
{
|
||||||
static std::string modelName;
|
static std::string modelName;
|
||||||
if (modelName.empty())
|
if (modelName.empty())
|
||||||
@@ -99,7 +99,7 @@ namespace OpenVulkano
|
|||||||
return modelName;
|
return modelName;
|
||||||
}
|
}
|
||||||
|
|
||||||
std::string SystemInfo::GetOsName()
|
const std::string& SystemInfo::GetOsName()
|
||||||
{
|
{
|
||||||
static const std::string osName = [[[UIDevice currentDevice] systemName] UTF8String];
|
static const std::string osName = [[[UIDevice currentDevice] systemName] UTF8String];
|
||||||
return osName;
|
return osName;
|
||||||
@@ -117,7 +117,7 @@ namespace OpenVulkano
|
|||||||
return osv;
|
return osv;
|
||||||
}
|
}
|
||||||
|
|
||||||
std::string SystemInfo::GetOsNameHumanReadable()
|
const std::string& SystemInfo::GetOsNameHumanReadable()
|
||||||
{
|
{
|
||||||
static std::string hrName;
|
static std::string hrName;
|
||||||
if (hrName.empty())
|
if (hrName.empty())
|
||||||
|
|||||||
Reference in New Issue
Block a user