|
2 | 2 |
|
3 | 3 | #include "REX/BASE.h" |
4 | 4 |
|
5 | | -#include "REX/REX/CAST.h" |
| 5 | +#include "REX/CAST.h" |
6 | 6 | #include "REX/W32/BASE.h" |
7 | 7 |
|
8 | 8 | namespace REL |
9 | 9 | { |
10 | | - [[nodiscard]] std::uintptr_t GetIATAddr(std::string_view a_dll, std::string_view a_function); |
11 | | - [[nodiscard]] std::uintptr_t GetIATAddr(REX::W32::HMODULE a_module, std::string_view a_dll, std::string_view a_function); |
| 10 | + [[nodiscard, deprecated("Use 'REX::FModule' instead")]] std::uintptr_t GetIATAddr(std::string_view a_dll, std::string_view a_function); |
| 11 | + [[nodiscard, deprecated("Use 'REX::FModule' instead")]] std::uintptr_t GetIATAddr(REX::W32::HMODULE a_module, std::string_view a_dll, std::string_view a_function); |
12 | 12 |
|
13 | | - [[nodiscard]] void* GetIATPtr(std::string_view a_dll, std::string_view a_function); |
| 13 | + [[nodiscard, deprecated("Use 'REX::FModule' instead")]] void* GetIATPtr(std::string_view a_dll, std::string_view a_function); |
14 | 14 |
|
15 | 15 | template <class T> |
16 | | - [[nodiscard]] T* GetIATPtr(std::string_view a_dll, std::string_view a_function) |
| 16 | + [[nodiscard, deprecated("Use 'REX::FModule' instead")]] T* GetIATPtr(std::string_view a_dll, std::string_view a_function) |
17 | 17 | { |
18 | 18 | return static_cast<T*>(GetIATPtr(std::move(a_dll), std::move(a_function))); |
19 | 19 | } |
20 | 20 |
|
21 | | - [[nodiscard]] void* GetIATPtr(REX::W32::HMODULE a_module, std::string_view a_dll, std::string_view a_function); |
| 21 | + [[nodiscard, deprecated("Use 'REX::FModule' instead")]] void* GetIATPtr(REX::W32::HMODULE a_module, std::string_view a_dll, std::string_view a_function); |
22 | 22 |
|
23 | 23 | template <class T> |
24 | | - [[nodiscard]] T* GetIATPtr(REX::W32::HMODULE a_module, std::string_view a_dll, std::string_view a_function) |
| 24 | + [[nodiscard, deprecated("Use 'REX::FModule' instead")]] T* GetIATPtr(REX::W32::HMODULE a_module, std::string_view a_dll, std::string_view a_function) |
25 | 25 | { |
26 | 26 | return static_cast<T*>(GetIATPtr(a_module, std::move(a_dll), std::move(a_function))); |
27 | 27 | } |
28 | 28 |
|
29 | | - std::uintptr_t PatchIAT(std::uintptr_t a_newFunc, std::string_view a_dll, std::string_view a_function); |
| 29 | + [[deprecated("Use 'REX::FModule' instead")]] std::uintptr_t PatchIAT(std::uintptr_t a_newFunc, std::string_view a_dll, std::string_view a_function); |
30 | 30 |
|
31 | 31 | template <class F> |
32 | | - std::uintptr_t PatchIAT(F a_newFunc, std::string_view a_dll, std::string_view a_function) |
| 32 | + [[deprecated("Use 'REX::FModule' instead")]] std::uintptr_t PatchIAT(F a_newFunc, std::string_view a_dll, std::string_view a_function) |
33 | 33 | { |
34 | 34 | return PatchIAT(REX::UNRESTRICTED_CAST<std::uintptr_t>(a_newFunc), a_dll, a_function); |
35 | 35 | } |
|
0 commit comments