Skip to content

feat(host): add friend relationship, avatar and image queries to host mode - #7

Merged
hzqst merged 1 commit into
mainfrom
feat/host-avatars
Nov 24, 2026
Merged

hzqst merged 1 commit into
mainfrom
feat/host-avatars

Conversation

@hzqst

@hzqst hzqst commented Nov 24, 2026

Copy link
Copy Markdown
Contributor

Summary

  • SteamBridge_FriendsGetRelationship: a user's EFriendRelationship (SB_FRIEND_RELATIONSHIP_*).
  • SteamBridge_FriendsGetAvatar: the small / medium / large avatar image handle (SB_AVATAR_*), passed through as Steam returns it (0 = none, -1 = still loading).
  • SteamBridge_UtilsGetImageSize / SteamBridge_UtilsGetImageRGBA: image size and RGBA pixels through SteamUtils011, resolved as a global interface (user 0) at client initialization.
  • Mock host: StubUtils (every SteamUtils011 method), friend relationship / avatars and a 2x1 test image.

Used by HLND2T-DiligentGraphics' Counter-Strike client (scoreboard avatars, blocked-player chat filter) so that it no longer links steam_api (HLND2T/HLND2T-DiligentGraphics#1478).

Verification

  • Windows x64 Release: CTest 3/3 passed.
  • Windows x86 Release: CTest 4/4 passed.
  • Linux x64 / x86 Release (WSL Ubuntu 24.04, GCC): CTest 2/2 passed on each.
  • format-check: 14 files, 0 with differences.
  • Against a real Steam client: verified later from the game (scoreboard avatars with -steam), not by SteamBridgeHostSmoke.

🤖 Generated with Claude Code

… mode

SteamBridge_FriendsGetRelationship and SteamBridge_FriendsGetAvatar (Friends018) and
SteamBridge_UtilsGetImageSize / SteamBridge_UtilsGetImageRGBA (Utils011) let a host-mode
consumer show Steam avatars and filter blocked players without linking steam_api.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@hzqst
hzqst merged commit 736ff69 into main Nov 24, 2026
2 checks passed
@hzqst
hzqst deleted the feat/host-avatars branch November 24, 2026 09:07
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant