mirror of
https://github.com/ddnet/ddnet.git
synced 2024-11-10 01:58:19 +00:00
Add Mac OSX standalone client handling
to find server executable
This commit is contained in:
parent
6a79cc3e59
commit
db01e068d9
|
@ -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
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue