mirror of
https://github.com/ddnet/ddnet.git
synced 2024-11-19 06:28:19 +00:00
No need for writing to tmp config file anymore
This commit is contained in:
parent
f3a44995cf
commit
a736a27430
|
@ -60,7 +60,7 @@ public:
|
|||
{
|
||||
if(!m_pStorage || !g_Config.m_ClSaveSettings)
|
||||
return;
|
||||
m_ConfigFile = m_pStorage->OpenFile(CONFIG_FILE ".tmp", IOFLAG_WRITE, IStorage::TYPE_SAVE);
|
||||
m_ConfigFile = m_pStorage->OpenFile(CONFIG_FILE, IOFLAG_WRITE, IStorage::TYPE_SAVE);
|
||||
|
||||
if(!m_ConfigFile)
|
||||
return;
|
||||
|
@ -81,7 +81,6 @@ public:
|
|||
|
||||
io_close(m_ConfigFile);
|
||||
m_ConfigFile = 0;
|
||||
m_pStorage->RenameFile(CONFIG_FILE ".tmp", CONFIG_FILE, IStorage::TYPE_SAVE);
|
||||
}
|
||||
|
||||
virtual void RegisterCallback(SAVECALLBACKFUNC pfnFunc, void *pUserData)
|
||||
|
|
Loading…
Reference in a new issue