mirror of
https://github.com/acidicoala/SmokeAPI.git
synced 2026-05-04 11:32:18 -04:00
Reworked hooking
This commit is contained in:
@@ -1,8 +1,10 @@
|
||||
#include "smoke_api/steamclient/steamclient.hpp"
|
||||
#include "../smoke_api.hpp"
|
||||
#include "smoke_api/types.hpp"
|
||||
#include <koalabox/hook.hpp>
|
||||
|
||||
#include "../steam_api/steam_client.hpp"
|
||||
#include "smoke_api/steamclient/steamclient.hpp"
|
||||
|
||||
#include "smoke_api/smoke_api.hpp"
|
||||
#include "smoke_api/types.hpp"
|
||||
#include "steam_api/steam_client.hpp"
|
||||
|
||||
/**
|
||||
* SmokeAPI implementation
|
||||
@@ -11,6 +13,9 @@ C_DECL(void*) CreateInterface(const char* interface_version, int* out_result) {
|
||||
return steam_client::GetGenericInterface(
|
||||
__func__,
|
||||
interface_version,
|
||||
HOOKED_CALL_CLOSURE(CreateInterface, interface_version, out_result)
|
||||
[&] {
|
||||
static const auto CreateInterface$ = KB_HOOK_GET_HOOKED_FN(CreateInterface);
|
||||
return CreateInterface$(interface_version, out_result);
|
||||
}
|
||||
);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user