add pushad wrapper around fonticon game functions

This commit is contained in:
Jan 2021-09-06 14:45:47 +02:00
parent 089d3c9180
commit 677ac700ca

View File

@ -1208,11 +1208,18 @@ namespace Game
{ {
__asm __asm
{ {
mov edi, [esp + 0x8] // letter push eax
push [esp + 0x4] // font pushad
mov edi, [esp + 0x8 + 0x24] // letter
push [esp + 0x4 + 0x24] // font
mov eax, 0x5055C0 mov eax, 0x5055C0
call eax call eax
add esp, 4 add esp, 4
mov [esp + 0x20], eax
popad
pop eax
ret ret
} }
} }
@ -1221,20 +1228,27 @@ namespace Game
{ {
__asm __asm
{ {
mov eax, [esp + 0x08] // maxLength push eax
push [esp + 0x2C] // resultDecayTimeElapsed pushad
push [esp + 0x2C] // resultDecaying
push [esp + 0x2C] // resultMaxLength mov eax, [esp + 0x08 + 0x24] // maxLength
push [esp + 0x2C] // resultRandSeed push [esp + 0x2C + 0x24] // resultDecayTimeElapsed
push [esp + 0x2C] // resultDrawRandChar push [esp + 0x2C + 0x24] // resultDecaying
push [esp + 0x2C] // fxDecayDuration push [esp + 0x2C + 0x24] // resultMaxLength
push [esp + 0x2C] // fxDecayStartTime push [esp + 0x2C + 0x24] // resultRandSeed
push [esp + 0x2C] // fxLetterTime push [esp + 0x2C + 0x24] // resultDrawRandChar
push [esp + 0x2C] // fxBirthTime push [esp + 0x2C + 0x24] // fxDecayDuration
push [esp + 0x28] // text push [esp + 0x2C + 0x24] // fxDecayStartTime
push [esp + 0x2C + 0x24] // fxLetterTime
push [esp + 0x2C + 0x24] // fxBirthTime
push [esp + 0x28 + 0x24] // text
mov ebx, 0x535050 mov ebx, 0x535050
call ebx call ebx
add esp, 0x28 add esp, 0x28
mov [esp + 0x20],eax
popad
pop eax
ret ret
} }
} }
@ -1243,20 +1257,23 @@ namespace Game
{ {
__asm __asm
{ {
mov eax, [esp + 0x4] // material pushad
mov edx, [esp + 0x20] // glyph
push [esp + 0x24] // color
push [esp + 0x20] // cosAngle
push [esp + 0x20] // sinAngle
push [esp + 0x20] // h
push [esp + 0x20] // w
push [esp + 0x20] // y
push [esp + 0x20] // x
mov ebx, 0x534E20 mov eax, [esp + 0x4 + 0x20] // material
call ebx mov edx, [esp + 0x20 + 0x20] // glyph
push [esp + 0x24 + 0x20] // color
push [esp + 0x20 + 0x20] // cosAngle
push [esp + 0x20 + 0x20] // sinAngle
push [esp + 0x20 + 0x20] // h
push [esp + 0x20 + 0x20] // w
push [esp + 0x20 + 0x20] // y
push [esp + 0x20 + 0x20] // x
mov ecx, 0x534E20
call ecx
add esp, 0x1C add esp, 0x1C
popad
ret ret
} }
} }
@ -1265,21 +1282,25 @@ namespace Game
{ {
__asm __asm
{ {
mov eax, [esp + 0x4] // material pushad
push [esp + 0x30] // color
push [esp + 0x30] // cosAngle mov eax, [esp + 0x4 + 0x20] // material
push [esp + 0x30] // sinAngle push [esp + 0x30 + 0x20] // color
push [esp + 0x30] // t1 push [esp + 0x30 + 0x20] // cosAngle
push [esp + 0x30] // s1 push [esp + 0x30 + 0x20] // sinAngle
push [esp + 0x30] // t0 push [esp + 0x30 + 0x20] // t1
push [esp + 0x30] // s0 push [esp + 0x30 + 0x20] // s1
push [esp + 0x30] // h push [esp + 0x30 + 0x20] // t0
push [esp + 0x30] // w push [esp + 0x30 + 0x20] // s0
push [esp + 0x30] // y push [esp + 0x30 + 0x20] // h
push [esp + 0x30] // x push [esp + 0x30 + 0x20] // w
push [esp + 0x30 + 0x20] // y
push [esp + 0x30 + 0x20] // x
mov ebx, 0x5310F0 mov ebx, 0x5310F0
call ebx call ebx
add esp, 0x2C add esp, 0x2C
popad
ret ret
} }
} }
@ -1288,10 +1309,17 @@ namespace Game
{ {
__asm __asm
{ {
mov eax, [esp + 0x4] // colorA push eax
mov ecx, [esp + 0x8] // colorB pushad
mov eax, [esp + 0x4 + 0x24] // colorA
mov ecx, [esp + 0x8 + 0x24] // colorB
mov ebx, 0x5353C0 mov ebx, 0x5353C0
call ebx call ebx
mov [esp + 0x20], eax
popad
pop eax
ret ret
} }
} }