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/misc/task_jump_constructor.cpp

14 lines
276 B
C++
Raw Normal View History

#include "hooking.hpp"
namespace big
{
void hooks::task_jump_constructor(std::uint64_t a1, int a2)
{
if (g.self.super_jump)
a2 |= 1 << 15;
if (g.self.beast_jump)
a2 |= (1 << 15) | (1 << 17);
return g_hooking->get_original<task_jump_constructor>()(a1, a2);
}
}