2010-11-20 10:37:14 +00:00
|
|
|
/* (c) Magnus Auvinen. See licence.txt in the root of the distribution for more information. */
|
|
|
|
/* If you are missing that file, acquire a complete release at teeworlds.com. */
|
2011-04-13 18:22:10 +00:00
|
|
|
#ifndef ENGINE_SHARED_CONFIG_H
|
|
|
|
#define ENGINE_SHARED_CONFIG_H
|
2010-05-29 07:25:38 +00:00
|
|
|
|
2015-07-22 16:23:40 +00:00
|
|
|
#define CONFIG_FILE "settings_ddnet.cfg"
|
2015-08-12 11:49:16 +00:00
|
|
|
#define AUTOEXEC_FILE "autoexec.cfg"
|
|
|
|
#define AUTOEXEC_CLIENT_FILE "autoexec_client.cfg"
|
|
|
|
#define AUTOEXEC_SERVER_FILE "autoexec_server.cfg"
|
2015-07-22 16:23:40 +00:00
|
|
|
|
2010-05-29 07:25:38 +00:00
|
|
|
struct CConfiguration
|
2011-04-13 18:37:12 +00:00
|
|
|
{
|
2011-08-13 00:11:06 +00:00
|
|
|
#define MACRO_CONFIG_INT(Name,ScriptName,Def,Min,Max,Save,Desc) int m_##Name;
|
2019-05-15 16:05:19 +00:00
|
|
|
#define MACRO_CONFIG_COL(Name,ScriptName,Def,Save,Desc) unsigned m_##Name;
|
2011-08-13 00:11:06 +00:00
|
|
|
#define MACRO_CONFIG_STR(Name,ScriptName,Len,Def,Save,Desc) char m_##Name[Len]; // Flawfinder: ignore
|
|
|
|
#include "config_variables.h"
|
|
|
|
#undef MACRO_CONFIG_INT
|
2019-04-25 11:48:53 +00:00
|
|
|
#undef MACRO_CONFIG_COL
|
2011-08-13 00:11:06 +00:00
|
|
|
#undef MACRO_CONFIG_STR
|
2010-05-29 07:25:38 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
extern CConfiguration g_Config;
|
|
|
|
|
|
|
|
enum
|
|
|
|
{
|
2019-04-26 13:38:16 +00:00
|
|
|
CFGFLAG_SAVE=1<<0,
|
|
|
|
CFGFLAG_CLIENT=1<<1,
|
|
|
|
CFGFLAG_SERVER=1<<2,
|
|
|
|
CFGFLAG_STORE=1<<3,
|
|
|
|
CFGFLAG_MASTER=1<<4,
|
|
|
|
CFGFLAG_ECON=1<<5,
|
2011-04-09 06:41:31 +00:00
|
|
|
// DDRace
|
2011-08-31 10:10:15 +00:00
|
|
|
|
2019-04-26 13:38:16 +00:00
|
|
|
CMDFLAG_TEST=1<<6,
|
|
|
|
CFGFLAG_CHAT=1<<7,
|
|
|
|
CFGFLAG_GAME=1<<8,
|
|
|
|
CFGFLAG_NONTEEHISTORIC=1<<9,
|
|
|
|
CFGFLAG_COLLIGHT=1<<10,
|
2019-05-01 10:58:51 +00:00
|
|
|
CFGFLAG_COLALPHA=1<<11,
|
2010-05-29 07:25:38 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
#endif
|