mirror of
https://github.com/OpenRCT2/OpenRCT2
synced 2025-12-18 21:43:48 +01:00
Add /../share/openrct2 as possible install location
This allows AppImage to work correctly.
This commit is contained in:
@@ -119,11 +119,15 @@ namespace Platform
|
||||
path = Path::Combine(exeDirectory, "data");
|
||||
if (!Path::DirectoryExists(path))
|
||||
{
|
||||
// 3. Try standard system app directories
|
||||
// 3. Try ${exeDir}/../share/openrct2
|
||||
path = Path::Combine(exeDirectory, "../share/openrct2");
|
||||
if (!Path::DirectoryExists(path))
|
||||
{
|
||||
// 4. Try standard system app directories
|
||||
path = FindInstallPath();
|
||||
if (path.empty())
|
||||
{
|
||||
// 4. Fallback to ${cwd}/data
|
||||
// 5. Fallback to ${cwd}/data
|
||||
path = GetCurrentWorkingDirectory();
|
||||
if (!path.empty())
|
||||
{
|
||||
@@ -136,6 +140,7 @@ namespace Platform
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
return path;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user