Add Mac OSX standalone client handling

to find server executable
This commit is contained in:
def 2020-09-24 10:46:19 +02:00
parent 6a79cc3e59
commit db01e068d9

View file

@ -259,7 +259,22 @@ public:
return;
}
else
{
#if defined(CONF_PLATFORM_MACOSX)
str_append(m_aBinarydir, "/../../../DDNet-Server.app/Contents/MacOS", sizeof(m_aBinarydir));
str_format(aBuf, sizeof(aBuf), "%s/" PLAT_SERVER_EXEC, m_aBinarydir);
IOHANDLE File = io_open(aBuf, IOFLAG_READ);
if(File)
{
io_close(File);
return;
}
else
m_aBinarydir[0] = 0;
#else
m_aBinarydir[0] = 0;
#endif
}
}
}