
feat(invoker): add compiler hints chore(get network event data): added translation TODO feat(native hooks): add compiler hint to crashes feat(render): add likely compiler hint to on_present feat(thread pool): add compiler hints Added hook likely/unlikely switches to debug/crash scenarios. Added HEX_TO_UPPER call on the AC verifier offsets. Added more fuzzer unlikely attributes. Replaced some hard coded numbers with their unhashed _J variants. Added more unlikely attributes to singleton initializer checks. Added more likely/unlikely attributes to certain scenarios.
16 lines
287 B
C++
16 lines
287 B
C++
#include "hooking/hooking.hpp"
|
|
#include "script_mgr.hpp"
|
|
|
|
namespace big
|
|
{
|
|
bool hooks::run_script_threads(uint32_t ops_to_execute)
|
|
{
|
|
if (g_running) [[likely]]
|
|
{
|
|
g_script_mgr.tick();
|
|
}
|
|
|
|
return g_hooking->get_original<run_script_threads>()(ops_to_execute);
|
|
}
|
|
}
|