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:
parent
93b5bd45e2
commit
0fff97941f
@ -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]);
|
||||
|
Loading…
Reference in New Issue
Block a user