mirror of
https://github.com/Facepunch/Facepunch.Steamworks.git
synced 2025-01-29 23:18:09 +03:00
Fix SteamFriends.GetRichPresence(key, value)
Adds key/value to the dictionary only if the rich presence was set successfully. Also fixes #307
This commit is contained in:
parent
5666bb432e
commit
9ad3a57ad9
@ -253,8 +253,12 @@ namespace Steamworks
|
|||||||
/// </summary>
|
/// </summary>
|
||||||
public static bool SetRichPresence( string key, string value )
|
public static bool SetRichPresence( string key, string value )
|
||||||
{
|
{
|
||||||
|
bool success = Internal.SetRichPresence( key, value );
|
||||||
|
|
||||||
|
if ( success )
|
||||||
richPresence[key] = value;
|
richPresence[key] = value;
|
||||||
return Internal.SetRichPresence( key, value );
|
|
||||||
|
return success;
|
||||||
}
|
}
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
|
Loading…
x
Reference in New Issue
Block a user