Th11/Binary hacks

From Touhou Patch Center
Jump to navigation Jump to search

Bugs

Safe sprintf (call #1)
(sprintf_call_1)
Address
v1.00a0x454c8d
Code
50
e8 [strings_vsprintf]
8944e4 14
push eax
call [strings_vsprintf]
mov dword ptr ss:[esp+0x14],eax
Safe sprintf (call #2)
(sprintf_call_2)
Address
v1.00a0x454d39, 0x454e19
Code
50
e8 [strings_vsprintf]
8944e4 1c
push eax
call [strings_vsprintf]
mov dword ptr ss:[esp+0x1c],eax
Safe sprintf (replace pointer)
(sprintf_rep)
Address
v1.00a0x454cd3, 0x454db6, 0x454e8a
Code
8b5ce4
mov ebx, dword ptr ss:[esp+

Spells

Spell card alignment
(spell_align)
Address
v1.00a0x454d67
Code
8b96 08040000
51
d1ea
83e2 01
52
ffb4e4 a8000000
ffb4e4 a8000000
ff35 ec2e4c00
53
e8 [GetTextExtentForFont]
83c0 04
50
db04e4
58
85c0
mov edx, dword ptr ds:[esi+408]
push ecx
shr edx, 1
and edx, 00000001
push edx
push dword ptr ss:[esp+0xa8]
push dword ptr ss:[esp+0xa8]
push dword ptr ds:[th11.004c2eec]
push ebx
call [GetTextExtentForFont]
add eax, 4
push eax
fild dword ptr ss:[esp]
pop eax
test eax, eax

Player data

Remove spell "alignment" in the result screen
(result_spell_align)
Address
v1.00a0x454e79
Code
31c0
xor eax,eax

Compatibility

Reset English patch assist font width
(unpatch_font_assist)
Address
v1.00a0x4445c5
Code
6a 00
push 0