Subversion Repositories WoWGM

Rev

Rev 31 | Go to most recent revision | Details | 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
 
6
#define CVAR__REGISTER_PTR	0x00767FC0;
7
 
8
/****************************************************************************
9
*
10
*  Private
11
*
12
***/
13
 
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;
24
 
25
 
26
/****************************************************************************
27
*
28
*  External functions
29
*
30
***/
31
 
32
//===========================================================================
33
CVar* CVar::Register (LPCSTR		name,
34
					  LPCSTR		helpText,
35
					  unsigned int	flags,
36
					  LPCSTR		defaultValue,
37
					  bool			(*fcn)(CVar *,LPCSTR,LPCSTR,void *),
38
					  CATEGORY		category,
39
					  bool			setCommand,
40
					  void*			arg,
41
					  bool			a9) {
42
	return RegisterPtr(name,helpText,flags,defaultValue,fcn,category,setCommand,arg,a9);
43
}