Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/mumble-voip/mumble.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authordavidebeatrici <davidebeatrici@gmail.com>2016-06-24 00:32:22 +0300
committerMikkel Krautz <mikkel@krautz.dk>2016-06-24 00:32:37 +0300
commited8748dc07536c2ca67f2e803bf183c20826ee42 (patch)
tree5d75edf1cccafdd15b96a9b4bbc9ad358a2c295f /plugins/wolfet
parent51af7852474d92a7d0514a0f57903551c3595f97 (diff)
plugins: update memory addresses retrieval to use procptr32_t/procptr64_t.
Diffstat (limited to 'plugins/wolfet')
-rw-r--r--plugins/wolfet/wolfet.cpp14
1 files changed, 7 insertions, 7 deletions
diff --git a/plugins/wolfet/wolfet.cpp b/plugins/wolfet/wolfet.cpp
index ded6fcdd8..1c1d6a2d9 100644
--- a/plugins/wolfet/wolfet.cpp
+++ b/plugins/wolfet/wolfet.cpp
@@ -47,7 +47,7 @@
Increasing when turning left.
*/
-#include "../mumble_plugin_win32.h"
+#include "../mumble_plugin_win32_x86.h"
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 &) {
float viewHor, viewVer;
@@ -57,7 +57,7 @@ static int fetch(float *avatar_pos, float *avatar_front, float *avatar_top, floa
avatar_pos[i] = avatar_front[i] = avatar_top[i] = camera_pos[i] = camera_front[i] = camera_top[i] = 0.0f;
bool ok;
- ok = peekProc((BYTE *) 0x013E8DFC, &team, 1);
+ ok = peekProc(0x013E8DFC, &team, 1);
if (!ok)
return false;
@@ -65,9 +65,9 @@ static int fetch(float *avatar_pos, float *avatar_front, float *avatar_top, floa
if (team == 0 || team == 3)
return true;
- ok = peekProc((BYTE *) 0x013E8CF4, avatar_pos, 12) && // X, Y, Z
- peekProc((BYTE *) 0x013F9E20, &viewHor, 4) && // Hor-Angle
- peekProc((BYTE *) 0x013F9E1C, &viewVer, 4); // Ver-Angle
+ ok = peekProc(0x013E8CF4, avatar_pos, 12) && // X, Y, Z
+ peekProc(0x013F9E20, &viewHor, 4) && // Hor-Angle
+ peekProc(0x013F9E1C, &viewVer, 4); // Ver-Angle
if (!ok)
return false;
@@ -91,8 +91,8 @@ static int fetch(float *avatar_pos, float *avatar_front, float *avatar_top, floa
// Context - concatenated server-ip, mapname and team value
char hostip[32];
char mapname[40];
- ok = peekProc((BYTE *) 0x009FFD30, hostip, sizeof(hostip)) &&
- peekProc((BYTE *) 0x010B4908, mapname, sizeof(hostip));
+ ok = peekProc(0x009FFD30, hostip, sizeof(hostip)) &&
+ peekProc(0x010B4908, mapname, sizeof(hostip));
hostip[sizeof(hostip)-1] = '\0';
mapname[sizeof(mapname)-1] = '\0';
// Context in JSON format, {} with fields ipport (server hostname), map, and team (: int)