Subversion Repositories WoWGM

Rev

Rev 32 | Details | Compare with Previous | Last modification | View Log | RSS feed

Rev Author Line No. Line
3 tristanc 1
#include "pch.h"
2
#pragma hdrstop
3
 
4
#include "ConsoleClient.h"
5
 
32 tristanc 6
 
36 tristanc 7
/******************************************************************************
31 tristanc 8
*
9
*   Client memory addresses
10
*
11
***/
3 tristanc 12
 
32 tristanc 13
#define  CVAR__REGISTER_PTR 0x00767FC0
31 tristanc 14
 
15
 
36 tristanc 16
/******************************************************************************
3 tristanc 17
*
31 tristanc 18
*   Client function pointers
3 tristanc 19
*
20
***/
21
 
31 tristanc 22
CVar* (*RegisterPtr)(LPCSTR,LPCSTR,DWORD,LPCSTR,bool(*)(CVar*,LPCSTR,LPCSTR,void*),CATEGORY,bool,void*,bool) = *(CVar*(*)(LPCSTR,LPCSTR,DWORD,LPCSTR,bool(*)(CVar*,LPCSTR,LPCSTR,void*),CATEGORY,bool,void*,bool))  CVAR__REGISTER_PTR;
3 tristanc 23
 
24
 
36 tristanc 25
/******************************************************************************
3 tristanc 26
*
31 tristanc 27
*   External
3 tristanc 28
*
29
***/
30
 
36 tristanc 31
//=============================================================================
31 tristanc 32
CVar* CVar::Register (LPCSTR    name,
33
                      LPCSTR    helpText,
34
                      DWORD     flags,
35
                      LPCSTR    defaultValue,
36
                      bool      (*fcn)(CVar*,LPCSTR,LPCSTR,void*),
37
                      CATEGORY  category,
38
                      bool      setCommand,
39
                      void*     arg,
40
                      bool      a9) {
41
 
3 tristanc 42
	return RegisterPtr(name,helpText,flags,defaultValue,fcn,category,setCommand,arg,a9);
43
}
32 tristanc 44