Cleanup of Mac code

This commit is contained in:
drmortalwombat 2021-09-28 21:09:39 +02:00
parent e2a9cf05ac
commit 22dc083283

View File

@ -74,10 +74,8 @@ int main(int argc, const char** argv)
#ifdef __APPLE__
uint32_t length = sizeof(basePath);
if (_NSGetExecutablePath(basePath, &length) != 0) {
// Buffer size is too small.
return false;
}
_NSGetExecutablePath(basePath, &length);
#else
int length = readlink("/proc/self/exe", basePath, sizeof(basePath));