Merge pull request #3511 from edg-l/pr-ddnet-info-tmp

remove ddnet info tmp file always when quitting
This commit is contained in:
Dennis Felsing 2021-01-15 15:03:16 +01:00 committed by GitHub
commit cc7ed06b8a
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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;
}