Merge pull request #598 from diamante0018/fix/script

[Script]: Fix asm
This commit is contained in:
Edo 2022-11-25 23:35:43 +00:00 committed by GitHub
commit d005b1ca0e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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
} }
} }