diff options
author | Jamie Fraser <jamie.f@mumbledog.com> | 2014-05-24 15:32:05 +0400 |
---|---|---|
committer | Mikkel Krautz <mikkel@krautz.dk> | 2014-06-06 18:13:07 +0400 |
commit | 82f95c6344bc3676ae70ac04e35b45f94e93f318 (patch) | |
tree | a75825d21c5777a38e8b4580d392133cc80d7bbd /plugins | |
parent | f91386b36463cf99d1e431d3487c9e4f6444f977 (diff) |
Update World of Warcraft Plugin to build 18291
I'm also tentatively throwing away the process of going through NameStore
looking for our characer name - all the posters on OwnedCore are doing it through
a simple pointer. I'm guessing this plugin doesn't do it that way because there was
no static pointer when it was written, but for now this seems to work.
(Also, no one has posted the updated offset for NameStorePtr yet)
Diffstat (limited to 'plugins')
-rw-r--r-- | plugins/wow/wow.cpp | 19 |
1 files changed, 15 insertions, 4 deletions
diff --git a/plugins/wow/wow.cpp b/plugins/wow/wow.cpp index 93c09d21b..1ffa362d5 100644 --- a/plugins/wow/wow.cpp +++ b/plugins/wow/wow.cpp @@ -50,9 +50,9 @@ uint64_t g_playerGUID; * call each value, to ease in upgrading. "[_]" means the value name may or may not * have an underscore in it depending on who's posting the offset. */ -static uint32_t ptr_ClientConnection=0xEC4140; // ClientConnection or CurMgrPointer +static uint32_t ptr_ClientConnection=0xEC4628; // ClientConnection or CurMgrPointer static size_t off_ObjectManager=0x462C; // objectManager or CurMgrOffset -static uint32_t ptr_WorldFrame=0xD6496C; // Camera[_]Pointer +static uint32_t ptr_WorldFrame=0xD64E5C; // Camera[_]Pointer static size_t off_CameraOffset=0x8208; // Camera[_]Offset uint32_t getInt32(uint32_t ptr) { @@ -200,6 +200,16 @@ static const unsigned long nameBaseOffset = 0x020; // Offset for the start static const unsigned long nameStringOffset = 0x021; // Offset to the C string in a name structure void getPlayerName(std::wstring &identity) { + /* + ** All the OwnedCore guys seem to be just pulling it from a simple pointer + ** instead of traversing through the NameStore, and since no one's updated + ** nameStorePtr yet I figured I'd try just doing it this way. + */ + getWString((uint32_t)pModule +0xEC4668, identity); + return; + + /* + ** Old code below: unsigned long mask, base, offset, current, shortGUID, testGUID; mask = getInt32((uint32_t)pModule + nameStorePtr + nameMaskOffset); @@ -228,6 +238,7 @@ void getPlayerName(std::wstring &identity) { testGUID=getInt32(current); } getWString(current + nameStringOffset, identity); +*/ //printf("%ls\n", identity.data()); } @@ -416,10 +427,10 @@ static int trylock(const std::multimap<std::wstring, unsigned long long int> &pi } static const std::wstring longdesc() { - return std::wstring(L"Supports World of Warcraft 5.4.7 (18019), with identity support."); + return std::wstring(L"Supports World of Warcraft 5.4.7 (18291), with identity support."); } -static std::wstring description(L"World of Warcraft 5.4.7 (18019)"); +static std::wstring description(L"World of Warcraft 5.4.7 (18291)"); static std::wstring shortname(L"World of Warcraft"); |