diff options
author | Davide Beatrici <davidebeatrici@gmail.com> | 2016-10-31 16:24:25 +0300 |
---|---|---|
committer | Davide Beatrici <davidebeatrici@gmail.com> | 2016-10-31 16:24:25 +0300 |
commit | 921ee19e3abd24482921d85b38c0c4b3d0cbcffe (patch) | |
tree | c26e7b7720b7c16d7b0e7bcd14394da9f898841b /plugins/dys | |
parent | ca2fd07b90746a17dba13963f7bdd54812c5d016 (diff) |
plugins: use the short form of peekProc
The short form of peekProc automatically uses the correct size for the target.
Diffstat (limited to 'plugins/dys')
-rw-r--r-- | plugins/dys/dys.cpp | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/plugins/dys/dys.cpp b/plugins/dys/dys.cpp index bab7e2b9f..142a2c261 100644 --- a/plugins/dys/dys.cpp +++ b/plugins/dys/dys.cpp @@ -49,10 +49,10 @@ static int fetch(float *avatar_pos, float *avatar_front, float *avatar_top, floa wostringstream new_identity; ostringstream new_context; - ok = peekProc(posptr, ipos, 12) && - peekProc(rotptr, rot, 12) && - peekProc(stateptr, &state, 1) && - peekProc(hostptr, chHostStr, 40); + ok = peekProc(posptr, ipos) && + peekProc(rotptr, rot) && + peekProc(stateptr, state) && + peekProc(hostptr, chHostStr); if (!ok) return false; @@ -118,7 +118,7 @@ static int trylock(const std::multimap<std::wstring, unsigned long long int> &pi //Gamecheck char sMagic[14]; - if (!peekProc(pModule + 0x463726, sMagic, 14) || strncmp("DysObjective@@", sMagic, 14)!=0) + if (!peekProc(pModule + 0x463726, sMagic) || strncmp("DysObjective@@", sMagic, 14)!=0) return false; // Check if we can get meaningful data from it |