SystemInfo changes for Linux
This commit is contained in:
@@ -112,7 +112,7 @@ namespace OpenVulkano
|
||||
return vramMax;
|
||||
}
|
||||
|
||||
std::string SystemInfo::GetUserName()
|
||||
const std::string& SystemInfo::GetUserName()
|
||||
{
|
||||
static std::string userName;
|
||||
if (userName.empty())
|
||||
@@ -130,7 +130,7 @@ namespace OpenVulkano
|
||||
return userName;
|
||||
}
|
||||
|
||||
std::string SystemInfo::GetHostName()
|
||||
const std::string& SystemInfo::GetHostName()
|
||||
{
|
||||
static std::string hostName;
|
||||
if (hostName.empty())
|
||||
@@ -142,12 +142,12 @@ namespace OpenVulkano
|
||||
return hostName;
|
||||
}
|
||||
|
||||
std::string SystemInfo::GetDeviceName()
|
||||
const std::string& SystemInfo::GetDeviceName()
|
||||
{
|
||||
return GetHostName();
|
||||
}
|
||||
|
||||
std::string SystemInfo::GetDeviceVendorName()
|
||||
const std::string& SystemInfo::GetDeviceVendorName()
|
||||
{
|
||||
static std::string vendor;
|
||||
if (vendor.empty())
|
||||
@@ -168,7 +168,7 @@ namespace OpenVulkano
|
||||
return vendor;
|
||||
}
|
||||
|
||||
std::string SystemInfo::GetDeviceModelName()
|
||||
const std::string& SystemInfo::GetDeviceModelName()
|
||||
{
|
||||
static std::string modelName;
|
||||
if (modelName.empty())
|
||||
@@ -283,7 +283,7 @@ namespace OpenVulkano
|
||||
OsInfo osInfo;
|
||||
}
|
||||
|
||||
std::string SystemInfo::GetOsName()
|
||||
const std::string& SystemInfo::GetOsName()
|
||||
{
|
||||
return osInfo.osName;
|
||||
}
|
||||
@@ -293,7 +293,7 @@ namespace OpenVulkano
|
||||
return osInfo.version;
|
||||
}
|
||||
|
||||
std::string SystemInfo::GetOsNameHumanReadable()
|
||||
const std::string& SystemInfo::GetOsNameHumanReadable()
|
||||
{
|
||||
return osInfo.osNameFormatted;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user