mirror of
https://github.com/ddnet/ddnet.git
synced 2024-11-10 01:58:19 +00:00
Ignore non-existing dll file
Happened when adding the new sqlite3.dll file.
This commit is contained in:
parent
5663357fef
commit
b756eaf6dc
|
@ -153,7 +153,7 @@ bool CUpdater::MoveFile(const char *pFile)
|
||||||
if(!str_comp_nocase(pFile + len - 4, ".dll") || !str_comp_nocase(pFile + len - 4, ".ttf"))
|
if(!str_comp_nocase(pFile + len - 4, ".dll") || !str_comp_nocase(pFile + len - 4, ".ttf"))
|
||||||
{
|
{
|
||||||
str_format(aBuf, sizeof(aBuf), "%s.old", pFile);
|
str_format(aBuf, sizeof(aBuf), "%s.old", pFile);
|
||||||
Success &= m_pStorage->RenameBinaryFile(pFile, aBuf);
|
m_pStorage->RenameBinaryFile(pFile, aBuf);
|
||||||
str_format(aBuf, sizeof(aBuf), "update/%s", pFile);
|
str_format(aBuf, sizeof(aBuf), "update/%s", pFile);
|
||||||
Success &= m_pStorage->RenameBinaryFile(aBuf, pFile);
|
Success &= m_pStorage->RenameBinaryFile(aBuf, pFile);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue