Subversion Repositories WoWGM

Rev

Rev 3 | Rev 32 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

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