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/aoc | |
parent | 51af7852474d92a7d0514a0f57903551c3595f97 (diff) |
plugins: update memory addresses retrieval to use procptr32_t/procptr64_t.
Diffstat (limited to 'plugins/aoc')
-rw-r--r-- | plugins/aoc/aoc.cpp | 9 |
1 files changed, 3 insertions, 6 deletions
diff --git a/plugins/aoc/aoc.cpp b/plugins/aoc/aoc.cpp index 13889a5e0..0e69dab78 100644 --- a/plugins/aoc/aoc.cpp +++ b/plugins/aoc/aoc.cpp @@ -34,14 +34,11 @@ SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ -#include "../mumble_plugin_win32.h" +#include "../mumble_plugin_win32_x86.h" using namespace std; -BYTE *posptr; -BYTE *rotptr; -BYTE *stateptr; -BYTE *hostptr; +procptr32_t posptr, rotptr, stateptr, hostptr; static bool calcout(float *pos, float *rot, float *opos, float *front, float *top) { float h = rot[0]; @@ -131,7 +128,7 @@ static int trylock(const std::multimap<std::wstring, unsigned long long int> &pi if (! initialize(pids, L"hl2.exe", L"client.dll")) return false; - BYTE *mod_engine=getModuleAddr(L"engine.dll"); + procptr32_t mod_engine=getModuleAddr(L"engine.dll"); if (!mod_engine) return false; |