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.
Some games (e.g. Deep Rock Galactic, PEAK) don't have any in-game UI for sending friend invites, and instead activate the overlay with either
Steam_Friends::ActivateGameOverlay("LobbyInvite"),Steam_Friends::ActivateGameOverlayInviteDialog(steamIDLobby)orSteam_Friends::ActivateGameOverlayInviteDialogConnectString(pchConnectString)to open a friend invite dialog. Given that the goldberg experimental overlay is not well-supported and even broken on many Linux games, ideally there should be a way to send out invites in these kinds of games without having the overlay enabled at all.I've added functionality that parses a
steam_settings/auto_send_invites.txtfile. This behaves almost exactly like theauto_accept_invites.txtfunctionality currently in the emu: Having a list of SteamIDs in this file will add them to an auto-send list, and if a game calls one of the three aforementioned API functions, the emu will automatically send lobby invitations to the IDs on that list, as long as they are playing the same appID. If theauto_send_invites.txtfile is empty, the emu will send out invites to all friends playing the same appID.In addition, some games (e.g. Left 4 Dead 2) will check if the overlay is enabled by calling
Steam_Utils::IsOverlayEnabled()before trying to open the invite dialogs, so I've modifiedIsOverlayEnabled()to return true if theauto_send_invites.txtfile is present, even if the experimental overlay is disabled.Tested on L4D2 and Deep Rock Galactic.