2358dcf30b
+ 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
18 lines
461 B
C++
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...);
|
|
}
|
|
} |