mirror of
https://github.com/acidicoala/SmokeAPI.git
synced 2026-01-29 07:52:51 -05:00
Reworked late hooking
This commit is contained in:
@@ -3,7 +3,16 @@
|
||||
#include "smoke_api/types.hpp"
|
||||
|
||||
namespace steam_interfaces {
|
||||
void hook_virtuals(const void* interface_ptr, const std::string& version_string);
|
||||
|
||||
void hook_virtuals(void* interface_ptr, const std::string& version_string);
|
||||
|
||||
/**
|
||||
* A fallback mechanism used when SteamAPI has already been initialized.
|
||||
* It will hook the SteamClient interface and hook its interface accessors.
|
||||
* This allows us to hook interfaces that are no longer being created,
|
||||
* such as in the case of late injection.
|
||||
*/
|
||||
void hook_steamclient_interface(
|
||||
HMODULE steamclient_handle,
|
||||
const std::string& steam_client_interface_version
|
||||
) noexcept;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user