Minor cleanups

This commit is contained in:
def 2015-07-22 18:23:40 +02:00
parent 4d239cab77
commit 4e658c1057
3 changed files with 5 additions and 3 deletions

View file

@ -3292,11 +3292,11 @@ int main(int argc, const char **argv) // ignore_convention
pClient->InitInterfaces();
// execute config file
IOHANDLE file = pStorage->OpenFile("settings_ddnet.cfg", IOFLAG_READ, IStorage::TYPE_ALL);
IOHANDLE file = pStorage->OpenFile(CONFIG_FILE, IOFLAG_READ, IStorage::TYPE_ALL);
if(file)
{
io_close(file);
pConsole->ExecuteFile("settings_ddnet.cfg");
pConsole->ExecuteFile(CONFIG_FILE);
}
else // fallback
{

View file

@ -3,6 +3,8 @@
#ifndef ENGINE_SHARED_CONFIG_H
#define ENGINE_SHARED_CONFIG_H
#define CONFIG_FILE "settings_ddnet.cfg"
struct CConfiguration
{
#define MACRO_CONFIG_INT(Name,ScriptName,Def,Min,Max,Save,Desc) int m_##Name;

View file

@ -384,7 +384,7 @@ void CSqlScore::SaveTeamScoreThread(void *pUser)
}
end:
dbg_msg("SQL", "Updating time done");
dbg_msg("SQL", "Updating team time done");
// delete results statement
delete pData->m_pSqlData->m_pResults;