mirror of
https://github.com/ddnet/ddnet.git
synced 2024-11-10 10:08:18 +00:00
Fix: Autoupdater for 64 bit Linux
This commit is contained in:
parent
73bf2966f8
commit
92ad47b641
|
@ -172,6 +172,8 @@ void CAutoUpdate::CheckUpdates(CMenus *pMenus)
|
||||||
dbg_msg("autoupdate", "Updating client");
|
dbg_msg("autoupdate", "Updating client");
|
||||||
#if defined(CONF_FAMILY_WINDOWS)
|
#if defined(CONF_FAMILY_WINDOWS)
|
||||||
if (!GetFile("DDNet.exe", "DDNet_tmp.exe"))
|
if (!GetFile("DDNet.exe", "DDNet_tmp.exe"))
|
||||||
|
#elif defined(CONF_ARCH_AMD64)
|
||||||
|
if (!GetFile("DDNet64", "DDNet_tmp"))
|
||||||
#else
|
#else
|
||||||
if (!GetFile("DDNet", "DDNet_tmp"))
|
if (!GetFile("DDNet", "DDNet_tmp"))
|
||||||
#endif
|
#endif
|
||||||
|
@ -322,7 +324,7 @@ bool CAutoUpdate::GetFile(const char *pFile, const char *dst)
|
||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
else if (aNetBuff[i]!='\r')
|
else if (aNetBuff[i]!='\r')
|
||||||
enterCtrl=0;
|
enterCtrl=0;
|
||||||
|
|
||||||
NetData+=aNetBuff[i];
|
NetData+=aNetBuff[i];
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue