2
0
mirror of https://github.com/rehlds/metamod-r.git synced 2024-12-25 14:15:31 +03:00

Temporary patch #40

This commit is contained in:
s1lent 2018-06-15 15:47:00 +07:00
parent 93b5bd45e2
commit 0fff97941f
No known key found for this signature in database
GPG Key ID: 0FE401DC73916B5C

View File

@ -141,8 +141,14 @@ void CForwardCallbackJIT::naked_main()
jnz(go_next_plugin);
if (plug == m_jitdata->plugins->front()) { // init meta globals
xor_(eax, eax);
mov(dword_ptr[globals + mg_mres], MRES_IGNORED);
mov(dword_ptr[globals + mg_prev_mres], MRES_UNSET);
mov(dword_ptr[globals + mg_prev_mres], eax); // MRES_UNSET
mov(dword_ptr[globals + mg_status], eax); // NULL
// FIXME: in some cases causes a crash
//mov(dword_ptr[globals + mg_mres], MRES_IGNORED);
//mov(dword_ptr[globals + mg_prev_mres], MRES_UNSET);
}
else {
mov(eax, dword_ptr[globals + mg_mres]);
@ -236,8 +242,14 @@ void CForwardCallbackJIT::naked_main()
jnz(go_next_plugin);
if (plug == m_jitdata->plugins->front()) { // init meta globals
xor_(eax, eax);
mov(dword_ptr[globals + mg_mres], MRES_IGNORED);
mov(dword_ptr[globals + mg_prev_mres], MRES_UNSET);
mov(dword_ptr[globals + mg_prev_mres], eax); // MRES_UNSET
mov(dword_ptr[globals + mg_status], eax); // NULL
// FIXME: in some cases causes a crash
//mov(dword_ptr[globals + mg_mres], MRES_IGNORED);
//mov(dword_ptr[globals + mg_prev_mres], MRES_UNSET);
}
else {
mov(eax, dword_ptr[globals + mg_mres]);