diff options
author | davidebeatrici <davidebeatrici@gmail.com> | 2016-06-24 00:32:22 +0300 |
---|---|---|
committer | Mikkel Krautz <mikkel@krautz.dk> | 2016-06-24 00:32:37 +0300 |
commit | ed8748dc07536c2ca67f2e803bf183c20826ee42 (patch) | |
tree | 5d75edf1cccafdd15b96a9b4bbc9ad358a2c295f /plugins/borderlands2 | |
parent | 51af7852474d92a7d0514a0f57903551c3595f97 (diff) |
plugins: update memory addresses retrieval to use procptr32_t/procptr64_t.
Diffstat (limited to 'plugins/borderlands2')
-rw-r--r-- | plugins/borderlands2/borderlands2.cpp | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/plugins/borderlands2/borderlands2.cpp b/plugins/borderlands2/borderlands2.cpp index 7452f42d0..595a5fb68 100644 --- a/plugins/borderlands2/borderlands2.cpp +++ b/plugins/borderlands2/borderlands2.cpp @@ -35,12 +35,12 @@ SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ -#include "../mumble_plugin_win32.h" +#include "../mumble_plugin_win32_x86.h" #include <algorithm> -VOID *vects_ptr; -VOID *state_ptr; -VOID *character_name_ptr_loc; +procptr32_t vects_ptr; +procptr32_t state_ptr; +procptr32_t character_name_ptr_loc; static int fetch(float *avatar_pos, float *avatar_front, float *avatar_top, float *camera_pos, float *camera_front, float *camera_top, std::string &, std::wstring &identity) { @@ -80,9 +80,9 @@ static int fetch(float *avatar_pos, float *avatar_front, float *avatar_top, floa // Extract the character name - BYTE *ptr1 = peekProc<BYTE*>(character_name_ptr_loc); - BYTE *ptr2 = peekProc<BYTE*>(ptr1 + 0xC); - BYTE *character_name_ptr = ptr2 + 0x80; + procptr32_t ptr1 = peekProc<procptr32_t>(character_name_ptr_loc); + procptr32_t ptr2 = peekProc<procptr32_t>(ptr1 + 0xC); + procptr32_t character_name_ptr = ptr2 + 0x80; char character_name[16]; // The game limits us to 15 char names ok = peekProc(character_name_ptr, character_name); |