Subversion Repositories WoWGM

Rev

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

Rev 3 Rev 7
Line 31... Line 31...
31
#define WOWCLIENTINIT_PTR				0x00404130;
31
#define WOWCLIENTINIT_PTR				0x00404130;
32
 
32
 
33
 
33
 
34
/****************************************************************************
34
/****************************************************************************
35
*
35
*
36
*	Global variables
-
 
37
*
-
 
38
***/
-
 
39
CVar* g_password = NULL;
-
 
40
 
-
 
41
 
-
 
42
/****************************************************************************
-
 
43
*
-
 
44
*	Function pointers
36
*	Function pointers
45
*
37
*
46
***/
38
***/
47
 
39
 
48
void (*ClientRegisterConsoleCommandsPtr)()	= *(void(*)())CLIENTREGISTERCONSOLECOMMANDS;
40
void (*ClientRegisterConsoleCommandsPtr)()	= *(void(*)())CLIENTREGISTERCONSOLECOMMANDS;
Line 114... Line 106...
114
	*((int*)0x00D415B8) = 0x00000001;
106
	*((int*)0x00D415B8) = 0x00000001;
115
	*((int*)0x00D415BC) = 0x7FFFFFFF;
107
	*((int*)0x00D415BC) = 0x7FFFFFFF;
116
}
108
}
117
 
109
 
118
//===========================================================================
110
//===========================================================================
119
inline void SetLoginPassword()
-
 
120
{
-
 
121
	char command[256] = {};
-
 
122
 
-
 
123
	// TODO: Call SStrPrintF here
-
 
124
	sprintf_s(command,
-
 
125
			  sizeof(command),
-
 
126
			  "AccountLoginPasswordEdit:SetText(\"%s\")",
-
 
127
			  g_password->m_stringValue.m_string);
-
 
128
	FrameScript_Execute(command,command,NULL);
-
 
129
}
-
 
130
 
-
 
131
//===========================================================================
-
 
132
void InitializeHandlerPlayer()
111
void InitializeHandlerPlayer()
133
{
112
{
134
	InitializeHandlerPlayerPtr();
113
	InitializeHandlerPlayerPtr();
135
 
114
 
136
	ConsoleCommandExecute("run autoexec.wtf",FALSE);
115
	ConsoleCommandExecute("run autoexec.wtf",FALSE);
Line 183... Line 162...
183
//===========================================================================
162
//===========================================================================
184
void WowClientInit()
163
void WowClientInit()
185
{
164
{
186
	WowClientInitPtr();
165
	WowClientInitPtr();
187
 
166
 
188
	SetLoginPassword();
167
	WowGM::CGlueMgr::SetLoginPassword();
189
	ConsoleCommandExecute("run autoexec.wtf",FALSE);
168
	ConsoleCommandExecute("run autoexec.wtf",FALSE);
190
}
169
}
191
 
170
 
192
 
171
 
193
/****************************************************************************
172
/****************************************************************************