1
0
mirror of https://github.com/OpenRCT2/OpenRCT2 synced 2026-01-23 23:04:36 +01:00

Use u8string for custom paths

This commit is contained in:
Michael Steenbeek
2022-01-27 14:21:46 +01:00
committed by GitHub
parent 2c8c940caa
commit 149b164ee8
10 changed files with 45 additions and 54 deletions

View File

@@ -89,10 +89,9 @@ namespace Platform
std::string GetInstallPath()
{
// 1. Try command line argument
auto path = std::string(gCustomOpenRCT2DataPath);
if (!path.empty())
if (!gCustomOpenRCT2DataPath.empty())
{
return Path::GetAbsolute(path);
return Path::GetAbsolute(gCustomOpenRCT2DataPath);
}
// 2. Try {${exeDir},${cwd},/}/{data,standard system app directories}
// exeDir should come first to allow installing into build dir