ddnet/src/engine/shared/config.h

30 lines
566 B
C
Raw Normal View History

2010-05-29 07:25:38 +00:00
#ifndef ENGINE_SHARED_E_CONFIG_H
#define ENGINE_SHARED_E_CONFIG_H
struct CConfiguration
{
#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
void dbg_msg1(char * where, char * format, ...);
2010-05-29 07:25:38 +00:00
enum
{
CFGFLAG_SAVE=1,
CFGFLAG_CLIENT=2,
CFGFLAG_SERVER=4,
CFGFLAG_STORE=8
2010-05-29 07:25:38 +00:00
};
#endif