Fixes for macOS game building

This commit is contained in:
Wojtek Figat
2023-03-30 18:38:58 +02:00
parent aeb0bf700f
commit 4528cce71c
6 changed files with 34 additions and 11 deletions

View File

@@ -360,7 +360,7 @@ String MacPlatform::GetMainDirectory()
if (path.EndsWith(TEXT("/Contents/MacOS")))
{
// If running from executable in a package, go up to the Contents
path = StringUtils::GetDirectoryName(path);
path = path.Left(path.Length() - 6);
}
return path;
}