Small fix

This commit is contained in:
Federico Cecchetto 2022-06-02 23:58:53 +02:00
parent a1769e5b56
commit ef6ce8dc06

View File

@ -122,14 +122,16 @@ namespace renderer
{ {
return utils::hook::assemble([](utils::hook::assembler& a) return utils::hook::assemble([](utils::hook::assembler& a)
{ {
a.push(r9);
a.push(rax); a.push(rax);
a.pushad64(); a.pushad64();
a.call_aligned(get_red_dot_brightness); a.call_aligned(get_red_dot_brightness);
a.mov(qword_ptr(rsp, 0x80), rax); a.mov(qword_ptr(rsp, 0x80), rax);
a.popad64(); a.popad64();
a.pop(rax); a.pop(rax);
a.pop(r9);
a.mov(dword_ptr(r8, 0x1E84), eax); a.mov(dword_ptr(r9, 0x1E84), eax);
a.jmp(0x1C4136_b); a.jmp(0x1C4136_b);
}); });