mirror of
https://github.com/ddnet/ddnet.git
synced 2024-11-10 10:08:18 +00:00
Fix autoupdater
This commit is contained in:
parent
6b25d81938
commit
360be2b727
|
@ -118,7 +118,7 @@ void CUpdater::ReplaceClient()
|
||||||
dbg_msg("updater", "Replacing " PLAT_CLIENT_EXEC);
|
dbg_msg("updater", "Replacing " PLAT_CLIENT_EXEC);
|
||||||
|
|
||||||
//Replace running executable by renaming twice...
|
//Replace running executable by renaming twice...
|
||||||
if(m_IsWinXP)
|
if(!m_IsWinXP)
|
||||||
{
|
{
|
||||||
m_pStorage->RemoveBinaryFile("DDNet.old");
|
m_pStorage->RemoveBinaryFile("DDNet.old");
|
||||||
m_pStorage->RenameBinaryFile(PLAT_CLIENT_EXEC, "DDNet.old");
|
m_pStorage->RenameBinaryFile(PLAT_CLIENT_EXEC, "DDNet.old");
|
||||||
|
|
Loading…
Reference in a new issue