mirror of
https://github.com/ddnet/ddnet.git
synced 2024-11-10 01:58:19 +00:00
Minor cleanups
This commit is contained in:
parent
4d239cab77
commit
4e658c1057
|
@ -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
|
||||
{
|
||||
|
|
|
@ -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;
|
||||
|
|
|
@ -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;
|
||||
|
|
Loading…
Reference in a new issue