Reworked hooking

This commit is contained in:
acidicoala
2025-08-28 22:25:11 +05:00
parent 6432eb3ec9
commit 09e1187ab0
19 changed files with 129 additions and 120 deletions

View File

@@ -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);
}
);
}