mirror of
https://github.com/ddnet/ddnet.git
synced 2024-11-10 10:08:18 +00:00
Fix bug with replacing executables.
This commit is contained in:
parent
fd4b9d1f06
commit
a4d16a2713
|
@ -104,6 +104,7 @@ void CAutoUpdate::ReplaceExecutable()
|
|||
dbg_msg("autoupdate", "Replacing" PLAT_CLIENT_EXEC);
|
||||
|
||||
//Replace running executable by renaming twice...
|
||||
m_pStorage->RemoveFile("DDNet.old", 2);
|
||||
m_pStorage->RenameFile(PLAT_CLIENT_EXEC, "DDNet.old", 2);
|
||||
m_pStorage->RenameFile("DDNet.tmp", PLAT_CLIENT_EXEC, 2);
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue