mirror of
https://github.com/ddnet/ddnet.git
synced 2024-11-19 22:48:18 +00:00
Remove duplicate if
branch
This commit is contained in:
parent
c4d512d86e
commit
725ebc929e
|
@ -146,11 +146,7 @@ void CMenus::RenderStartMenu(CUIRect MainView)
|
|||
char aBuf[IO_MAX_PATH_LENGTH];
|
||||
Storage()->GetBinaryPath(PLAT_SERVER_EXEC, aBuf, sizeof(aBuf));
|
||||
// No / in binary path means to search in $PATH, so it is expected that the file can't be opened. Just try executing anyway.
|
||||
if(str_find(aBuf, "/") == 0)
|
||||
{
|
||||
m_ServerProcess.m_Process = shell_execute(aBuf);
|
||||
}
|
||||
else if(fs_is_file(aBuf))
|
||||
if(str_find(aBuf, "/") == 0 || fs_is_file(aBuf))
|
||||
{
|
||||
m_ServerProcess.m_Process = shell_execute(aBuf);
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue