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/protections/task_ambient_clips.cpp

15 lines
311 B
C++
Raw Normal View History

#include "hooking.hpp"
namespace big
{
int hooks::task_ambient_clips(uint64_t _this, int a2, int a3)
{
// enter crash func
// TODO: this doesn't block the crash completely
if (*(uint64_t*)(_this + 0x100))
return g_hooking->get_original<hooks::task_ambient_clips>()(_this, a2, a3);
return 0;
}
}