Repository navigation
feat(host): add server browsing, favorites, friends and VAC status to host mode - #6
Merged
Merged
Conversation
… host mode Host mode wraps ISteamMatchmakingServers (server lists with filters, details, refresh, ping and player queries), ISteamMatchmaking favorites and history, ISteamFriends persona names and games, and ISteamApps VAC status behind C functions. Steam's response interfaces stay inside the bridge: list requests are handles, queries are numbers, and answers are copied out of gameserveritem_t. Release and cancellation stop events at once and run the native call after the dispatcher returns. FavoritesListChanged and PersonaStateChange reach a matchmaking callback separate from the client callback, so another module of the host can own it. Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
The GoldSrc SDK removes /EHsc from CMAKE_CXX_FLAGS, so an embedded bridge compiled without unwind semantics (C4530) and its catch blocks at the C boundary could not run destructors. Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
Contributor
Author
|
Added Real-game check (x64, engine started with |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Host-mode C functions for the GoldSrc server browser, so it can run on SteamAPIBridge instead of linking
steam_api:SteamBridge_Servers*(MatchMakingServers003): server lists (Internet, LAN, friends, favorites, history and spectator) with key/value filters, plus details, refresh, cancel,IsRefreshing, and ping and player queries.gameserveritem_tintoSteamBridgeServerItem.ReleaseRequestorCancelServerQueryruns after the dispatcher returns.SteamBridge_Matchmaking*(MatchMaking009): favorite count, add and remove.SteamBridge_FriendsGetPersonaNameandSteamBridge_FriendsGetGamePlayed(Friends018), andSteamBridge_AppsIsVACBanned(Apps009).SteamBridge_HostSetMatchmakingCallback:FavoritesListChanged_tandPersonaStateChange_tevents. This is a separate slot from the client callback, so a module other than the engine can own it. The existingSteamBridgeClientEventlayout is unchanged.Steam's
ppchFiltersis a pointer to the address of the filter array, not an array of pointers. The bridge and the fixture both follow that.Verification (simulated)
The fixture runtime (
tests/MockHost.cpp) now has MatchMaking, MatchMakingServers and Friends implementations. Their stubs intests/HostStubs.hare generated from the v1.65 headers. The fixture answers duringSteamAPI_RunCallbacks, and it does not answer a request after it is released or a query after it is cancelled.SteamBridge.Hostcovers:CTest results:
format-checkis clean (clang-format 23.1.3).There is no real-Steam verification yet. A live server browser test comes with the GoldSrc-SDK serverbrowser port that consumes this API.
🤖 Generated with Claude Code