Skip to content

Fix disabled Mute button by exporting ClientFactory#3984

Open
gss-crazydog wants to merge 1 commit intoValveSoftware:masterfrom
gss-crazydog:patch-1
Open

Fix disabled Mute button by exporting ClientFactory#3984
gss-crazydog wants to merge 1 commit intoValveSoftware:masterfrom
gss-crazydog:patch-1

Conversation

@gss-crazydog
Copy link
Copy Markdown

The GameUI requires the IGameClientExports interface from the Client DLL to manage player muting (checking status and toggling block state). Previously, the GameUI could not locate this interface because the client was not exposing its interface factory.

This change:

  • Exports ClientFactory from cdll_int.cpp to return the client's internal interface factory (Sys_GetFactoryThis).
  • Updates the cldll_func_t struct to include ClientFactory while passing nullptr for pGetPlayerTeam to skip its implementation and maintain alignment.

See also #1641


GetServerHostName in CClientExports could also be updated to actually return the server's hostname to display in the Player List dialog's title, but it is not necessary for this fix.

The GameUI requires the `IGameClientExports` interface from the Client DLL to manage player muting (checking status and toggling block state). Previously, the GameUI could not locate this interface because the client was not exposing its interface factory.

This change:
- Exports `ClientFactory` from cdll_int.cpp to return the client's internal interface factory (`Sys_GetFactoryThis`).
- Updates the `cldll_func_t` struct to include `ClientFactory` while passing `nullptr` for `pGetPlayerTeam` to skip its implementation and maintain alignment.

See also ValveSoftware#1641

---

`GetServerHostName` in `CClientExports` could also be updated to actually return the server's hostname to display in the Player List dialog's title, but it is not necessary for this fix.
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