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:
committed by
GitHub
parent
2c8c940caa
commit
149b164ee8
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user