Skip to content

Commit

Permalink
Merge fix(steam): support steamclient64.dll 8.75.5.19... for now. (pr…
Browse files Browse the repository at this point in the history
…-2417)

 - 79839e4 fix(steam): support steamclient64.dll 8.75.5.19... for now.
  • Loading branch information
thorium-cfx committed Mar 11, 2024
2 parents 78e5f7a + 79839e4 commit 8b93ef2
Showing 1 changed file with 13 additions and 3 deletions.
16 changes: 13 additions & 3 deletions code/components/steam/src/ClientEngineMapper.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -88,10 +88,20 @@ void ClientEngineMapper::LookupMethods()
bool ClientEngineMapper::IsMethodAnInterface(void* methodPtr, bool* isUser, bool child)
{
// 2021-05 Steam removes strings entirely from user interfaces
if (!child && hook::range_pattern((uintptr_t)methodPtr, (uintptr_t)methodPtr + 128, "42 3B 74 11 10 4A 8D 14 11 7C").count_hint(1).size() > 0)
if (!child)
{
*isUser = true;
return true;
for (auto pattern : {
"42 3B 74 11 10 4A 8D 14 11 7C", // >= 6.55.98.67 (2021-05)
"48 C1 E0 05 48 03 C2 3B 78 10 7C", // >= 8.74.80.95 (2024-03)
})
{
uintptr_t method = reinterpret_cast<uintptr_t>(methodPtr);
if (hook::range_pattern(method, method + 128, pattern).count_hint(1).size() > 0)
{
*isUser = true;
return true;
}
}
}

// output variable
Expand Down

0 comments on commit 8b93ef2

Please sign in to comment.