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

Function resolvePaths

src/OpenLoco/src/Environment.cpp:257–270  ·  view source on GitHub ↗

0x004412CE

Source from the content-addressed store, hash-verified

255
256 // 0x004412CE
257 void resolvePaths()
258 {
259 _configurablePaths.install = resolveLocoInstallPath();
260
261 // Figure out what save directory to default to
262 auto configLastSavePath = fs::u8path(Config::get().lastSavePath);
263 _configurablePaths.saves = tryPathOrDefault(configLastSavePath, PathId::save);
264
265 // Figure out what landscape directory to default to
266 auto configLastLandscapePath = fs::u8path(Config::get().lastLandscapePath);
267 _configurablePaths.landscapes = tryPathOrDefault(configLastLandscapePath, PathId::landscape);
268
269 autoCreateDirectory(getPath(PathId::customObjects));
270 }
271
272 class ThousandsSepFacet : public std::numpunct<char>
273 {

Callers 4

initialiseFunction · 0.85
simulateGameFunction · 0.85
mainFunction · 0.85
processFileForLoadSaveFunction · 0.85

Calls 5

resolveLocoInstallPathFunction · 0.85
tryPathOrDefaultFunction · 0.85
autoCreateDirectoryFunction · 0.85
getPathFunction · 0.85
getFunction · 0.70

Tested by

no test coverage detected