diff options
author | Jamie Fraser <jamie.f@mumbledog.com> | 2011-10-13 09:45:32 +0400 |
---|---|---|
committer | Benjamin Jemlich <pcgod@users.sourceforge.net> | 2011-10-14 10:35:09 +0400 |
commit | 09325a3801e88f68efdc20148b226a70fb9a0952 (patch) | |
tree | 4cfcc182b54d147056205696841f7b9817683395 /plugins/bfbc2 | |
parent | 47dae738986cf021a8b62bc0d762803df4a047a3 (diff) |
Update Battlefield: Bad Company 2 Plugin to build #795745 (Steam Only).
Diffstat (limited to 'plugins/bfbc2')
-rw-r--r-- | plugins/bfbc2/bfbc2.cpp | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/plugins/bfbc2/bfbc2.cpp b/plugins/bfbc2/bfbc2.cpp index 67f741216..a8b9f118c 100644 --- a/plugins/bfbc2/bfbc2.cpp +++ b/plugins/bfbc2/bfbc2.cpp @@ -49,7 +49,7 @@ static int fetch(float *avatar_pos, float *avatar_front, float *avatar_top, floa // Find out whether this is the steam version char sMagic[6]; - if (!peekProc((BYTE *) 0x01568044, sMagic, 6)) { + if (!peekProc((BYTE *) 0x015715b4, sMagic, 6)) { generic_unlock(); return false; } @@ -57,9 +57,9 @@ static int fetch(float *avatar_pos, float *avatar_front, float *avatar_top, floa is_steam = (strncmp("Score:", sMagic, 6) == 0); if (is_steam) { - ok = peekProc((BYTE *) 0x01568910, avatar_pos, 12) && - peekProc((BYTE *) 0x01568900, avatar_front, 12) && - peekProc((BYTE *) 0x015688F0, avatar_top, 12); + ok = peekProc((BYTE *) 0x01571E90, avatar_pos, 12) && + peekProc((BYTE *) 0x01571E80, avatar_front, 12) && + peekProc((BYTE *) 0x01571E70, avatar_top, 12); } else { ok = peekProc((BYTE *) 0x0156F0E0, avatar_pos, 12) && peekProc((BYTE *) 0x0156F0D0, avatar_front, 12) && @@ -112,10 +112,10 @@ static int trylock(const std::multimap<std::wstring, unsigned long long int> &pi } static const std::wstring longdesc() { - return std::wstring(L"Supports Battlefield Bad Company 2 build 602574. No identity or context support; Steam version support is unknown."); + return std::wstring(L"Supports Battlefield Bad Company 2 build 795745. No identity or context support."); } -static std::wstring description(L"Battlefield Bad Company 2 build 602574"); +static std::wstring description(L"Battlefield Bad Company 2 build 795745"); static std::wstring shortname(L"Battlefield Bad Company 2"); static int trylock1() { |