diff options
author | davidebeatrici <davidebeatrici@gmail.com> | 2017-11-13 22:45:22 +0300 |
---|---|---|
committer | davidebeatrici <davidebeatrici@gmail.com> | 2017-11-19 23:48:55 +0300 |
commit | 2a51c7bff664929fb181a9c55f84d326cbe28bfb (patch) | |
tree | 96264a12314283e9fb6299318191449b192a7f23 /plugins/bf4_x86 | |
parent | f397c40982860a9105b9bcffbc4e78716f359776 (diff) |
Accomplish changes in all the plugins
Diffstat (limited to 'plugins/bf4_x86')
-rw-r--r-- | plugins/bf4_x86/bf4_x86.cpp | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/plugins/bf4_x86/bf4_x86.cpp b/plugins/bf4_x86/bf4_x86.cpp index 74f920fea..0cf773470 100644 --- a/plugins/bf4_x86/bf4_x86.cpp +++ b/plugins/bf4_x86/bf4_x86.cpp @@ -3,7 +3,7 @@ // that can be found in the LICENSE file at the root of the // Mumble source tree or at <https://www.mumble.info/LICENSE>. -#include "../mumble_plugin_win32_32bit.h" // Include standard plugin header. +#include "../mumble_plugin_win32.h" // Include standard plugin header. #include "../mumble_plugin_utils.h" // Include plugin header for special functions, like "escape". static int fetch(float *avatar_pos, float *avatar_front, float *avatar_top, float *camera_pos, float *camera_front, float *camera_top, std::string &context, std::wstring &identity) { @@ -16,21 +16,21 @@ static int fetch(float *avatar_pos, float *avatar_front, float *avatar_top, floa BYTE squad, squad_leader, squad_state; // Server ID pointers - procptr32_t serverid_base = peekProc<procptr32_t>(pModule + 0x1D39C64); + procptr_t serverid_base = peekProcPtr(pModule + 0x1D39C64); if (!serverid_base) return false; - procptr32_t serverid_offset_0 = peekProc<procptr32_t>(serverid_base + 0xC); + procptr_t serverid_offset_0 = peekProcPtr(serverid_base + 0xC); if (!serverid_offset_0) return false; - procptr32_t serverid_offset_1 = peekProc<procptr32_t>(serverid_offset_0 + 0x14); + procptr_t serverid_offset_1 = peekProcPtr(serverid_offset_0 + 0x14); if (!serverid_offset_1) return false; - procptr32_t serverid_offset = peekProc<procptr32_t>(serverid_offset_1 + 0x1D0); + procptr_t serverid_offset = peekProcPtr(serverid_offset_1 + 0x1D0); if (!serverid_offset) return false; // Squad pointers - procptr32_t squad_base = peekProc<procptr32_t>(pModule + 0x1D39D0C); + procptr_t squad_base = peekProcPtr(pModule + 0x1D39D0C); if (!squad_base) return false; - procptr32_t squad_offset_0 = peekProc<procptr32_t>(squad_base + 0x7C); + procptr_t squad_offset_0 = peekProcPtr(squad_base + 0x7C); if (!squad_offset_0) return false; - procptr32_t squad_offset_1 = peekProc<procptr32_t>(squad_offset_0 + 0x728); + procptr_t squad_offset_1 = peekProcPtr(squad_offset_0 + 0x728); if (!squad_offset_1) return false; // Peekproc and assign game addresses to our containers, so we can retrieve positional data |