mirror of
https://github.com/acidicoala/SmokeAPI.git
synced 2026-01-25 22:12:52 -05:00
Split static & shared lib
This commit is contained in:
19
src/steam_api/steam_client.cpp
Normal file
19
src/steam_api/steam_client.cpp
Normal file
@@ -0,0 +1,19 @@
|
||||
#include <koalabox/logger.hpp>
|
||||
|
||||
#include "steam_api/steam_interface.hpp"
|
||||
|
||||
namespace steam_client {
|
||||
void* GetGenericInterface(
|
||||
const std::string& function_name,
|
||||
const std::string& interface_version,
|
||||
const std::function<void*()>& original_function
|
||||
) {
|
||||
auto* const interface = original_function();
|
||||
|
||||
LOG_DEBUG("{} -> '{}' @ {}", function_name, interface_version, interface);
|
||||
|
||||
steam_interface::hook_virtuals(interface, interface_version);
|
||||
|
||||
return interface;
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user