feat(Invoker): Added try except around native call
This commit is contained in:
parent
1233514bbb
commit
45f050a346
@ -36,10 +36,17 @@ namespace big
|
||||
{
|
||||
rage::scrNativeHandler handler = it->second;
|
||||
|
||||
__try
|
||||
{
|
||||
_call_asm(&m_call_context, handler, g_pointers->m_native_return);
|
||||
// handler(&m_call_context);
|
||||
g_pointers->m_fix_vectors(&m_call_context);
|
||||
}
|
||||
__except (EXCEPTION_EXECUTE_HANDLER)
|
||||
{
|
||||
[hash]() { LOG(WARNING) << "Exception caught while trying to call " << hash << " native."; }();
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
[hash]() { LOG(WARNING) << "Failed to find " << HEX_TO_UPPER(hash) << " native's handler."; }();
|
||||
|
Reference in New Issue
Block a user