mirror of
https://github.com/acidicoala/SmokeAPI.git
synced 2026-01-24 13:32:51 -05:00
Updated key of hooked interfaces
This commit is contained in:
@@ -138,9 +138,11 @@ namespace steam_functions {
|
||||
return;
|
||||
}
|
||||
|
||||
static Set<void*> hooked_interfaces;
|
||||
static Set<std::pair<void*, String>> hooked_interfaces;
|
||||
|
||||
if (hooked_interfaces.contains(interface)) {
|
||||
const auto interface_pair = std::pair{interface, version_string};
|
||||
|
||||
if (hooked_interfaces.contains(interface_pair)) {
|
||||
// This interface is already hooked. Skipping it.
|
||||
return;
|
||||
}
|
||||
@@ -196,7 +198,7 @@ namespace steam_functions {
|
||||
return;
|
||||
}
|
||||
|
||||
hooked_interfaces.insert(interface);
|
||||
hooked_interfaces.insert(interface_pair);
|
||||
}
|
||||
|
||||
HSteamPipe get_steam_pipe_or_throw() {
|
||||
|
||||
Reference in New Issue
Block a user