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/hooks/script/run_script_threads.cpp

16 lines
276 B
C++
Raw Normal View History

#include "hooking/hooking.hpp"
#include "script_mgr.hpp"
namespace big
{
bool hooks::run_script_threads(uint32_t ops_to_execute)
{
if (g_running)
{
g_script_mgr.tick();
}
return g_hooking->get_original<run_script_threads>()(ops_to_execute);
}
}