MCPcopy Create free account
hub / github.com/OpenRCT2/OpenRCT2 / GetEnvironmentVariable

Function GetEnvironmentVariable

src/openrct2/platform/Platform.Posix.cpp:40–43  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

38namespace OpenRCT2::Platform
39{
40 std::string GetEnvironmentVariable(std::string_view name)
41 {
42 return String::toStd(getenv(std::string(name).c_str()));
43 }
44
45 std::string GetEnvironmentPath(const char* name)
46 {

Callers 2

GetHomePathFunction · 0.70

Calls 1

toStdFunction · 0.85

Tested by

no test coverage detected