mirror of
https://github.com/ddnet/ddnet.git
synced 2024-11-10 01:58:19 +00:00
Merge pull request #3511 from edg-l/pr-ddnet-info-tmp
remove ddnet info tmp file always when quitting
This commit is contained in:
commit
cc7ed06b8a
|
@ -3347,6 +3347,13 @@ void CClient::Run()
|
|||
s_SavedConfig = true;
|
||||
}
|
||||
|
||||
IOHANDLE File = m_pStorage->OpenFile(m_aDDNetInfoTmp, IOFLAG_READ, IStorage::TYPE_SAVE);
|
||||
if(File)
|
||||
{
|
||||
io_close(File);
|
||||
m_pStorage->RemoveFile(m_aDDNetInfoTmp, IStorage::TYPE_SAVE);
|
||||
}
|
||||
|
||||
if(m_Warnings.empty() && !GameClient()->IsDisplayingWarning())
|
||||
break;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue