diff options
Diffstat (limited to 'src/extras/debugmenu.h')
-rw-r--r-- | src/extras/debugmenu.h | 40 |
1 files changed, 20 insertions, 20 deletions
diff --git a/src/extras/debugmenu.h b/src/extras/debugmenu.h index 45b65d04..f1357c0a 100644 --- a/src/extras/debugmenu.h +++ b/src/extras/debugmenu.h @@ -30,61 +30,61 @@ class CTweakVar { public: - virtual void AddDBG(const char* path) = 0; + virtual void AddDBG(const char *path) = 0; }; class CTweakVars { public: - static void Add(CTweakVar* var); - static void AddDBG(const char* path); + static void Add(CTweakVar *var); + static void AddDBG(const char *path); }; class CTweakFunc : public CTweakVar { - const char* m_pPath, * m_pVarName; + const char *m_pPath, *m_pVarName; void (*m_pFunc)(); public: - CTweakFunc(void (*pFunc)(), const char* strName, const char* strPath) : + CTweakFunc(void (*pFunc)(), const char *strName, const char *strPath) : m_pPath(strPath), m_pVarName(strName), m_pFunc(pFunc) { CTweakVars::Add(this); } - - void AddDBG(const char* path); + + void AddDBG(const char *path); }; class CTweakBool : public CTweakVar { - const char* m_pPath, * m_pVarName; - bool* m_pBoolVar; + const char *m_pPath, *m_pVarName; + bool *m_pBoolVar; public: - CTweakBool(bool* pBool, const char* strName, const char* strPath) : + CTweakBool(bool *pBool, const char *strName, const char *strPath) : m_pPath(strPath), m_pVarName(strName), m_pBoolVar(pBool) { CTweakVars::Add(this); } - - void AddDBG(const char* path); + + void AddDBG(const char *path); }; class CTweakSwitch : public CTweakVar { - const char* m_pPath, * m_pVarName; - void* m_pIntVar; + const char *m_pPath, *m_pVarName; + void *m_pIntVar; int32 m_nMin, m_nMax; - const char** m_aStr; + const char **m_aStr; void (*m_pFunc)(); public: - CTweakSwitch(void* pInt, const char* strName, int32 nMin, int32 nMax, const char** aStr, - void (*pFunc)(), const char* strPath) - : m_pPath(strPath), m_pVarName(strName), m_pIntVar(pInt), m_nMin(nMin), m_nMax(nMax), - m_aStr(aStr) + CTweakSwitch(void *pInt, const char *strName, int32 nMin, int32 nMax, const char **aStr, + void (*pFunc)(), const char *strPath) + : m_pPath(strPath), m_pVarName(strName), m_pIntVar(pInt), m_nMin(nMin), m_nMax(nMax), + m_aStr(aStr) { CTweakVars::Add(this); } - void AddDBG(const char* path); + void AddDBG(const char *path); }; #define _TWEEKCLASS(name, type) \ |