mirror of
https://github.com/TES3MP/TES3MP.git
synced 2025-09-29 08:00:56 -04:00
[Server] Fix return values for server functions providing system info
This commit is contained in:
parent
d8919dcec6
commit
7523a73346
@ -84,12 +84,14 @@ unsigned int ServerFunctions::GetMillisecondsSinceServerStart() noexcept
|
||||
|
||||
const char *ServerFunctions::GetOperatingSystemType() noexcept
|
||||
{
|
||||
return Utils::getOperatingSystemType().c_str();
|
||||
static const std::string operatingSystemType = Utils::getOperatingSystemType();
|
||||
return operatingSystemType.c_str();
|
||||
}
|
||||
|
||||
const char *ServerFunctions::GetArchitectureType() noexcept
|
||||
{
|
||||
return Utils::getArchitectureType().c_str();
|
||||
static const std::string architectureType = Utils::getArchitectureType();
|
||||
return architectureType.c_str();
|
||||
}
|
||||
|
||||
const char *ServerFunctions::GetServerVersion() noexcept
|
||||
|
Loading…
x
Reference in New Issue
Block a user