Skip to content

Commit

Permalink
No need for writing to tmp config file anymore
Browse files Browse the repository at this point in the history
  • Loading branch information
def- committed Jul 16, 2017
1 parent f3a4499 commit a736a27
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/engine/shared/config.cpp
Expand Up @@ -60,7 +60,7 @@ class CConfig : public IConfig
{
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;
Expand All @@ -81,7 +81,6 @@ class CConfig : public IConfig

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)
Expand Down

0 comments on commit a736a27

Please sign in to comment.