Mac impl progress

This commit is contained in:
Wojtek Figat
2021-12-31 15:06:44 +01:00
parent 6b851fc9a9
commit 9df132bd77
4 changed files with 52 additions and 3 deletions

View File

@@ -544,7 +544,7 @@ String MacPlatform::GetExecutableFilePath()
uint32 size = PATH_MAX;
String result;
if (_NSGetExecutablePath(buf, &size) == 0)
result.SetUTF8(buf, size);
result.SetUTF8(buf, StringUtils::Length(buf));
return result;
}