mirror of
https://github.com/Mr-X-GTA/YimMenu.git
synced 2026-10-12 10:18:05 +08:00
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.
18 lines
423 B
C++
18 lines
423 B
C++
#include "hooking/hooking.hpp"
|
|
#include "pointers.hpp"
|
|
|
|
namespace big
|
|
{
|
|
__int64 hooks::render_big_ped(__int64 renderer, CPed* ped, __int64 a3, __int64 a4)
|
|
{
|
|
if (*(int*)(((__int64)(*g_pointers->m_gta.m_draw_handler_mgr) + 0x14730)) >= 512) [[unlikely]]
|
|
{
|
|
*(int*)(a4 + 4) = -2;
|
|
return a4 + 0x14;
|
|
}
|
|
else [[likely]]
|
|
{
|
|
return g_hooking->get_original<hooks::render_big_ped>()(renderer, ped, a3, a4);
|
|
}
|
|
}
|
|
} |