Quote:
Originally Posted by Perma
That should work.
|
Code:
void Warcraft_TextOut(char *cText)
{
static unsigned long WC3FXN_GlobalClass = 0x6F84CC20;
static unsigned long WC3FXN_Text = 0x6F663740;
__asm {
push 0FFFFFFFFh
mov eax, WC3FXN_GlobalClass
mov eax, dword ptr ds:[eax]
mov eax, dword ptr ds:[eax+0x3E0]
mov edx, dword ptr ds:[eax]
push 0
push 41200000h
mov ecx, esp
lea ecx, dword ptr ss:[ecx+0x08]
push ecx
mov ecx, cText
push ecx
mov ecx, eax
call dword ptr [WC3FXN_Text]
}
}