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/cod5
parent51af7852474d92a7d0514a0f57903551c3595f97 (diff)
plugins: update memory addresses retrieval to use procptr32_t/procptr64_t.
Diffstat (limited to 'plugins/cod5')
-rw-r--r--plugins/cod5/cod5.cpp28
1 files changed, 14 insertions, 14 deletions
diff --git a/plugins/cod5/cod5.cpp b/plugins/cod5/cod5.cpp
index 26708cfbb..03b938089 100644
--- a/plugins/cod5/cod5.cpp
+++ b/plugins/cod5/cod5.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.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 &, std::wstring &) {
float viewHor, viewVer;
@@ -27,7 +27,7 @@ static int fetch(float *avatar_pos, float *avatar_front, float *avatar_top, floa
0x0098FD2C byte Magical state value
*/
- ok = peekProc((BYTE *) 0x0098FD2C, &state, 1); // Magical state value
+ ok = peekProc(0x0098FD2C, &state, 1); // Magical state value
if (! ok)
return false;
/*
@@ -42,11 +42,11 @@ static int fetch(float *avatar_pos, float *avatar_front, float *avatar_top, floa
if (state != 4)
return true; // This results in all vectors beeing zero which tells mumble to ignore them.
- ok = peekProc((BYTE *) 0x008DE23C, avatar_pos+2, 4) && //Z
- peekProc((BYTE *) 0x008DE234, avatar_pos, 4) && //X
- peekProc((BYTE *) 0x008DE238, avatar_pos+1, 4) && //Y
- peekProc((BYTE *) 0x008DE244, &viewHor, 4) && //Hor
- peekProc((BYTE *) 0x008DE240, &viewVer, 4); //Ver
+ ok = peekProc(0x008DE23C, avatar_pos+2, 4) && //Z
+ peekProc(0x008DE234, avatar_pos, 4) && //X
+ peekProc(0x008DE238, avatar_pos+1, 4) && //Y
+ peekProc(0x008DE244, &viewHor, 4) && //Hor
+ peekProc(0x008DE240, &viewVer, 4); //Ver
if (! ok)
return false;
@@ -69,15 +69,15 @@ static int fetch(float *avatar_pos, float *avatar_front, float *avatar_top, floa
// Calculate view unit vector
/*
- Vertical view 0° when centered
- 85° when looking down
- 275° when looking up
+ Vertical view 0° when centered
+ 85° when looking down
+ 275° when looking up
Decreasing when looking up.
- Horizontal is 0° when facing North
- 90° when facing West
- 180° when facing South
- 270° when facing East
+ Horizontal is 0° when facing North
+ 90° when facing West
+ 180° when facing South
+ 270° when facing East
Increasing when turning left.
*/
viewVer *= static_cast<float>(M_PI / 180.0f);