[Script]: Fix asm
This commit is contained in:
parent
a277640ed9
commit
720ee9730c
@ -107,18 +107,20 @@ namespace Game
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
void Scr_NotifyId(unsigned int id, unsigned __int16 stringValue, unsigned int paramcount)
|
__declspec(naked) void Scr_NotifyId(unsigned int /*id*/, unsigned __int16 /*stringValue*/, unsigned int /*paramcount*/)
|
||||||
{
|
{
|
||||||
static DWORD Scr_NotifyId_t = 0x61E670;
|
static DWORD Scr_NotifyId_t = 0x61E670;
|
||||||
|
|
||||||
__asm
|
__asm
|
||||||
{
|
{
|
||||||
pushad
|
pushad
|
||||||
mov eax, paramcount
|
|
||||||
push stringValue
|
mov eax, [esp + 0x20 + 0xC] // paramcount
|
||||||
push id
|
push [esp + 0x20 + 0x8] // stringValue
|
||||||
|
push [esp + 0x20 + 0x8] // id
|
||||||
call Scr_NotifyId_t
|
call Scr_NotifyId_t
|
||||||
add esp, 8h
|
add esp, 0x8
|
||||||
|
|
||||||
popad
|
popad
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user