Subversion Repositories WoWGM

Rev

Rev 3 | Rev 32 | Go to most recent revision | 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
 
31 tristanc 6
/****************************************************************************
7
*
8
*   Client memory addresses
9
*
10
***/
3 tristanc 11
 
31 tristanc 12
#define  CVAR__REGISTER_PTR 0x00767FC0;
13
 
14
 
3 tristanc 15
/****************************************************************************
16
*
31 tristanc 17
*   Client function pointers
3 tristanc 18
*
19
***/
20
 
31 tristanc 21
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 22
 
23
 
24
/****************************************************************************
25
*
31 tristanc 26
*   External
3 tristanc 27
*
28
***/
29
 
30
//===========================================================================
31 tristanc 31
CVar* CVar::Register (LPCSTR    name,
32
                      LPCSTR    helpText,
33
                      DWORD     flags,
34
                      LPCSTR    defaultValue,
35
                      bool      (*fcn)(CVar*,LPCSTR,LPCSTR,void*),
36
                      CATEGORY  category,
37
                      bool      setCommand,
38
                      void*     arg,
39
                      bool      a9) {
40
 
3 tristanc 41
	return RegisterPtr(name,helpText,flags,defaultValue,fcn,category,setCommand,arg,a9);
42
}