VoltMod
C++23 framework for CS2 server plugins
Loading...
Searching...
No Matches
OriginalSlotLookup.hpp
Go to the documentation of this file.
1#pragma once
2
3#include <functional>
4
5namespace VoltMod
6{
7
8/**
9 * Reads the value that @p vtable's @p index held before a hook patched it, or nullptr. An empty
10 * lookup reads the current slot. The injected lookup keeps vtable searches SDK-free; the default
11 * implementation is `ReadOriginalSlot` in Detours.hpp.
12 */
13using OriginalSlotLookup = std::function<const void*(void** vtable, int index)>;
14
15} // namespace VoltMod
static std::string ReadFile(const std::filesystem::path &path)
Definition Loader.cpp:56
std::function< const void *(void **vtable, int index)> OriginalSlotLookup