From 5e7706ab2c2e4e045190a41887a7ded1b6437f2a Mon Sep 17 00:00:00 2001 From: Steve Hill Date: Sun, 14 Sep 2014 12:39:55 -0400 Subject: [PATCH] Update Borderlands 2 plugin for version 1.8.3 --- plugins/borderlands2/borderlands2.cpp | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/plugins/borderlands2/borderlands2.cpp b/plugins/borderlands2/borderlands2.cpp index a87d0b9e7..8a4ea4483 100644 --- a/plugins/borderlands2/borderlands2.cpp +++ b/plugins/borderlands2/borderlands2.cpp @@ -162,6 +162,14 @@ static int trylock(const std::multimap &pi state_ptr = pModule + 0x1EE21F8; character_name_ptr_loc = pModule + 0x01EDB5B4; } + // 1.8.3 + else if (peekProc(pModule + 0x1EE63C8, detected_version) + && VERSION_EQ(detected_version, "WILLOW2-PCCHINA-29-CL827556")) + { + vects_ptr = pModule + 0x1EF2930; + state_ptr = pModule + 0x1EF3248; + character_name_ptr_loc = pModule + 0x01EEC5D4; + } else { generic_unlock(); @@ -186,7 +194,7 @@ static const std::wstring longdesc() { return std::wstring(L"Supports Borderlands 2. No context support yet."); } -static std::wstring description(L"Borderlands 2 (v1.7.0)"); +static std::wstring description(L"Borderlands 2 (v1.8.3)"); static std::wstring shortname(L"Borderlands 2"); static int trylock1() {