This repository has been archived on 2024-10-22. You can view files and clone it, but cannot push or open issues or pull requests.
YimMenu/src/invoker/invoker.cpp
maybegreat48 1127e51a52
Optimizations (#2649)
* fix(Respawn): fix respawn in SP
* fix: re-enable bigobj
* fix: update creator's stack size
* fix: use BOOLs instead of bools
* fix(gitignore): hide .pyc files
2023-12-29 17:07:00 +01:00

25 lines
503 B
C++

#include "invoker.hpp"
#include "crossmap.hpp"
#include "pointers.hpp"
namespace big
{
void native_invoker::cache_handlers()
{
if (m_are_handlers_cached)
return;
for (int i = 0; i < g_crossmap.size(); i++)
{
m_handlers[i] = g_pointers->m_gta.m_get_native_handler(g_pointers->m_gta.m_native_registration_table, g_crossmap[i]);
}
m_are_handlers_cached = true;
}
void native_invoker::fix_vectors()
{
g_pointers->m_gta.m_fix_vectors(&m_call_context);
}
}