t8-mod/source/proxy-dll/spoofer/spoofcall.hpp
project-bo4 2358dcf30b developer console
+ added in-game developer console
+ added dvar definitions and helping class
+ list of known game dvars can be found inside variables.cpp
+ adjusted logger component
+ re-enabled com_frame hook
+ some minor code formatting
2023-09-06 05:08:38 -07:00

18 lines
461 B
C++

#pragma once
namespace spoofcall
{
void* get_spoofcall_proxy(const void* funcAddr);
template <typename T, typename... Args>
static T invoke(size_t funcAddr, Args ... args)
{
return static_cast<T(*)(Args ...)>(get_spoofcall_proxy(reinterpret_cast<void*>(funcAddr)))(args...);
}
template <typename T, typename... Args>
static T invoke(void* funcAddr, Args ... args)
{
return static_cast<T(*)(Args ...)>(get_spoofcall_proxy(funcAddr))(args...);
}
}