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

Function GetInstallPath

src/openrct2/platform/Platform.Win32.cpp:142–155  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

140 }
141
142 std::string GetInstallPath()
143 {
144 auto path = std::string(gCustomOpenRCT2DataPath);
145 if (!path.empty())
146 {
147 path = Path::GetAbsolute(path);
148 }
149 else
150 {
151 auto exeDirectory = GetCurrentExecutableDirectory();
152 path = Path::Combine(exeDirectory, u8"data");
153 }
154 return path;
155 }
156
157 std::string GetCurrentExecutablePath()
158 {

Callers

nothing calls this directly

Calls 4

GetAbsoluteFunction · 0.85
CombineFunction · 0.50
emptyMethod · 0.45

Tested by

no test coverage detected