Support getting hook locations

This commit is contained in:
momo5502 2022-09-18 08:23:50 +02:00
parent eb4f66dae7
commit 62c5142b7a
2 changed files with 7 additions and 0 deletions

View File

@ -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_;

View File

@ -125,6 +125,8 @@ namespace utils::hook
void move();
void* get_place() const;
template <typename T>
T* get() const
{