mirror of
https://github.com/minetest/minetest.git
synced 2025-03-21 17:52:33 +01:00
Fix build on OS X (Thanks neoascetic)
This commit is contained in:
@ -388,7 +388,8 @@ bool getCurrentExecPath(char *buf, size_t len)
|
|||||||
|
|
||||||
bool getCurrentExecPath(char *buf, size_t len)
|
bool getCurrentExecPath(char *buf, size_t len)
|
||||||
{
|
{
|
||||||
if (_NSGetExecutablePath(buf, &len) == -1)
|
uint32_t lenb = (uint32_t)len;
|
||||||
|
if (_NSGetExecutablePath(buf, &lenb) == -1)
|
||||||
return false;
|
return false;
|
||||||
|
|
||||||
return true;
|
return true;
|
||||||
|
Reference in New Issue
Block a user