From 6d0cfa1ec8d9375e07b9ed942c75a6c13cca8ff7 Mon Sep 17 00:00:00 2001 From: Garry Newman Date: Tue, 18 Aug 2020 11:36:50 +0100 Subject: [PATCH] Added SteamFriends.OnOverlayBrowserProtocol --- Facepunch.Steamworks/SteamFriends.cs | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/Facepunch.Steamworks/SteamFriends.cs b/Facepunch.Steamworks/SteamFriends.cs index 0a075d3..50e7121 100644 --- a/Facepunch.Steamworks/SteamFriends.cs +++ b/Facepunch.Steamworks/SteamFriends.cs @@ -34,6 +34,7 @@ namespace Steamworks Dispatch.Install( x => OnGameServerChangeRequested?.Invoke( x.ServerUTF8(), x.PasswordUTF8() ) ); Dispatch.Install( x => OnGameLobbyJoinRequested?.Invoke( new Lobby( x.SteamIDLobby ), x.SteamIDFriend ) ); Dispatch.Install( x => OnFriendRichPresenceUpdate?.Invoke( new Friend( x.SteamIDFriend ) ) ); + Dispatch.Install( x => OnOverlayBrowserProtocol?.Invoke( x.RgchURIUTF8() ) ); } /// @@ -77,6 +78,13 @@ namespace Steamworks /// public static event Action OnFriendRichPresenceUpdate; + /// + /// Dispatched when an overlay browser instance is navigated to a + /// protocol/scheme registered by RegisterProtocolInOverlayBrowser() + /// + public static event Action OnOverlayBrowserProtocol; + + static unsafe void OnFriendChatMessage( GameConnectedFriendChatMsg_t data ) { if ( OnChatMessage == null ) return;