mirror of
https://github.com/rehlds/metamod-r.git
synced 2025-03-04 01:25:33 +03:00
Fixed rewriting of static jumps to jit callbacks for gamedll functions
This commit is contained in:
parent
14b26f5961
commit
3f25635fa5
@ -226,7 +226,7 @@ void compile_dllfunc_callbacks()
|
|||||||
jitdata.name = cd.name;
|
jitdata.name = cd.name;
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
*(size_t *)(size_t(&sFunctionTable) + cd.offset) = g_jit.compile_callback(&jitdata);
|
*(size_t *)(size_t(&sFunctionTable_jit) + cd.offset) = g_jit.compile_callback(&jitdata);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -250,7 +250,7 @@ void compile_newdllfunc_callbacks()
|
|||||||
jitdata.name = cd.name;
|
jitdata.name = cd.name;
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
*(size_t *)(size_t(&sNewFunctionTable) + cd.offset) = g_jit.compile_callback(&jitdata);
|
*(size_t *)(size_t(&sNewFunctionTable_jit) + cd.offset) = g_jit.compile_callback(&jitdata);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user