mirror of
https://github.com/acidicoala/SmokeAPI.git
synced 2026-01-27 23:12:51 -05:00
Reworked algorithm for finding App ID
This commit is contained in:
@@ -1,7 +1,13 @@
|
||||
#pragma once
|
||||
|
||||
#include <map>
|
||||
#include <string>
|
||||
|
||||
#define SMK_FIND_INTERFACE_FUNC(INTERFACE_PTR, INTERFACE_NAME, FUNCTION_NAME) \
|
||||
reinterpret_cast<decltype(&INTERFACE_NAME##_##FUNCTION_NAME)>( \
|
||||
steam_interfaces::find_function(INTERFACE_PTR, #INTERFACE_NAME, #FUNCTION_NAME) \
|
||||
)
|
||||
|
||||
namespace steam_interfaces {
|
||||
void hook_virtuals(const void* interface_ptr, const std::string& version_string);
|
||||
|
||||
@@ -15,4 +21,12 @@ namespace steam_interfaces {
|
||||
void* steamclient_handle,
|
||||
const std::string& steam_client_interface_version
|
||||
) noexcept;
|
||||
|
||||
void* find_function(
|
||||
const void* instance_ptr,
|
||||
const std::string& interface_name,
|
||||
const std::string& function_name
|
||||
);
|
||||
|
||||
const std::map<std::string, std::string>& get_interface_name_to_version_map();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user