mirror of https://github.com/acidicoala/SmokeAPI
You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
22 lines
560 B
C++
22 lines
560 B
C++
#include <steam_impl/steam_client.hpp>
|
|
|
|
namespace steam_client {
|
|
|
|
void* GetGenericInterface(
|
|
const String& function_name,
|
|
const String& interface_version,
|
|
const std::function<void*()>& original_function
|
|
) {
|
|
logger->debug("{} -> Version: '{}'", function_name, interface_version);
|
|
|
|
auto* const interface = original_function();
|
|
|
|
logger->debug("{} -> Result: {}", function_name, fmt::ptr(interface));
|
|
|
|
steam_functions::hook_virtuals(interface, interface_version);
|
|
|
|
return interface;
|
|
}
|
|
|
|
}
|