fixed a client crash in debug. Closes #806
[twcon.git] / src / engine / config.h
blob35ef9fb9fb109602303441ecfc6a96f1617e8468
1 /* (c) Magnus Auvinen. See licence.txt in the root of the distribution for more information. */
2 /* If you are missing that file, acquire a complete release at teeworlds.com. */
3 #ifndef ENGINE_CONFIG_H
4 #define ENGINE_CONFIG_H
6 #include "kernel.h"
8 class IConfig : public IInterface
10 MACRO_INTERFACE("config", 0)
11 public:
12 typedef void (*SAVECALLBACKFUNC)(IConfig *pConfig, void *pUserData);
14 virtual void Init() = 0;
15 virtual void Reset() = 0;
16 virtual void RestoreStrings() = 0;
17 virtual void Save() = 0;
19 virtual void RegisterCallback(SAVECALLBACKFUNC pfnFunc, void *pUserData) = 0;
21 virtual void WriteLine(const char *pLine) = 0;
24 extern IConfig *CreateConfig();
26 #endif