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

Function GetEnvironmentPath

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

Source from the content-addressed store, hash-verified

43 }
44
45 std::string GetEnvironmentPath(const char* name)
46 {
47 auto value = getenv(name);
48 if (value == nullptr)
49 {
50 return std::string();
51 }
52
53 auto colon = std::strchr(value, ':');
54 if (colon == nullptr)
55 {
56 return std::string(value);
57 }
58
59 return std::string(value, colon);
60 }
61
62 std::string GetHomePath()
63 {

Callers 1

GetFolderPathFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected