diff options
| author | jz0 <[email protected]> | 2020-05-03 22:38:59 +0300 |
|---|---|---|
| committer | jz0 <[email protected]> | 2020-05-03 22:38:59 +0300 |
| commit | fdb81a898151278a66af544dfae6bfcbbf9dc3d2 (patch) | |
| tree | 8884fc5c21b3daf0a32cc145c4488b9e708deec4 /source2-basehook/Source2SDK/CEngineVGUI.hpp | |
| download | archived-source2-basehook-fdb81a898151278a66af544dfae6bfcbbf9dc3d2.tar.xz archived-source2-basehook-fdb81a898151278a66af544dfae6bfcbbf9dc3d2.zip | |
Initial commit
Diffstat (limited to 'source2-basehook/Source2SDK/CEngineVGUI.hpp')
| -rw-r--r-- | source2-basehook/Source2SDK/CEngineVGUI.hpp | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/source2-basehook/Source2SDK/CEngineVGUI.hpp b/source2-basehook/Source2SDK/CEngineVGUI.hpp new file mode 100644 index 0000000..937ae24 --- /dev/null +++ b/source2-basehook/Source2SDK/CEngineVGUI.hpp @@ -0,0 +1,13 @@ +#pragma once + +class IVPanel +{ +public: + const char* GetName(void* ptr, unsigned long long vguiPanel) + { + typedef const char* (__thiscall* OriginalFn)(void*, unsigned long long); + return CallVfunc<OriginalFn>(ptr, 50)(ptr, vguiPanel); + } +}; + +extern IVPanel* pPanel;
\ No newline at end of file |