diff --git a/src/common/utils/hook.cpp b/src/common/utils/hook.cpp index e28196d5..38134d74 100644 --- a/src/common/utils/hook.cpp +++ b/src/common/utils/hook.cpp @@ -332,6 +332,11 @@ namespace utils::hook this->moved_data_ = move_hook(this->place_); } + void* detour::get_place() const + { + return this->place_; + } + void* detour::get_original() const { return this->original_; diff --git a/src/common/utils/hook.hpp b/src/common/utils/hook.hpp index ff9aead0..ade2fca2 100644 --- a/src/common/utils/hook.hpp +++ b/src/common/utils/hook.hpp @@ -125,6 +125,8 @@ namespace utils::hook void move(); + void* get_place() const; + template T* get() const {