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. */
|
2010-05-29 07:25:38 +00:00
|
|
|
#ifndef ENGINE_SHARED_E_CONFIG_H
|
|
|
|
#define ENGINE_SHARED_E_CONFIG_H
|
|
|
|
|
|
|
|
struct CConfiguration
|
|
|
|
{
|
2010-08-30 23:45:30 +00:00
|
|
|
#define MACRO_CONFIG_INT(Name,ScriptName,Def,Min,Max,Save,Desc,Level) int m_##Name;
|
|
|
|
#define MACRO_CONFIG_STR(Name,ScriptName,Len,Def,Save,Desc,Level) char m_##Name[Len]; // Flawfinder: ignore
|
2010-05-29 07:25:38 +00:00
|
|
|
#include "config_variables.h"
|
|
|
|
#undef MACRO_CONFIG_INT
|
|
|
|
#undef MACRO_CONFIG_STR
|
|
|
|
};
|
|
|
|
|
|
|
|
extern CConfiguration g_Config;
|
|
|
|
|
2010-10-31 20:29:41 +00:00
|
|
|
|
|
|
|
|
2010-12-07 17:44:23 +00:00
|
|
|
void dbg_msg1(const char * where, const char * format, ...);
|
2010-10-31 20:29:41 +00:00
|
|
|
|
|
|
|
|
|
|
|
|
2010-05-29 07:25:38 +00:00
|
|
|
enum
|
|
|
|
{
|
|
|
|
CFGFLAG_SAVE=1,
|
|
|
|
CFGFLAG_CLIENT=2,
|
2010-08-07 18:22:25 +00:00
|
|
|
CFGFLAG_SERVER=4,
|
2010-11-07 16:35:11 +00:00
|
|
|
CFGFLAG_STORE=8,
|
|
|
|
CMDFLAG_CHEAT=16,
|
|
|
|
CMDFLAG_TIMER=32,
|
|
|
|
CMDFLAG_HELPERCMD=64,
|
2010-05-29 07:25:38 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
#endif
|