mirror of
https://github.com/ddnet/ddnet.git
synced 2024-11-10 10:08:18 +00:00
Case-insensitive
This commit is contained in:
parent
53a7623191
commit
6b3e0981a1
|
@ -79,7 +79,7 @@ void CUpdater::MoveFile(const char *pFile)
|
||||||
{
|
{
|
||||||
char aBuf[256];
|
char aBuf[256];
|
||||||
size_t len = str_length(pFile);
|
size_t len = str_length(pFile);
|
||||||
if(!str_comp(pFile + len - 4, ".dll") || !str_comp(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);
|
||||||
m_pStorage->RenameBinaryFile(pFile, aBuf);
|
m_pStorage->RenameBinaryFile(pFile, aBuf);
|
||||||
|
|
Loading…
Reference in a new issue