MCPcopy Create free account
hub / github.com/OpenLoco/OpenLoco / getEnvironmentVariable

Function getEnvironmentVariable

src/Platform/src/Platform.Posix.cpp:39–43  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

37 }
38
39 std::string getEnvironmentVariable(const std::string& name)
40 {
41 auto result = getenv(name.c_str());
42 return result == nullptr ? std::string() : result;
43 }
44
45#if !(defined(__APPLE__) && defined(__MACH__))
46 static fs::path getHomeDirectory()

Callers 3

getHomeDirectoryFunction · 0.70
getUserDirectoryFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected