Merge pull request #308 from TheCubicNoobik/SteamFriends-fix

Fix SteamFriends.GetRichPresence(key, value)
This commit is contained in:
Garry Newman 2019-09-16 10:02:20 +01:00 committed by GitHub
commit 39952fe50e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -253,8 +253,12 @@ public static string GetRichPresence( string key )
/// </summary>
public static bool SetRichPresence( string key, string value )
{
richPresence[key] = value;
return Internal.SetRichPresence( key, value );
bool success = Internal.SetRichPresence( key, value );
if ( success )
richPresence[key] = value;
return success;
}
/// <summary>
@ -285,4 +289,4 @@ public static bool ListenForFriendsMessages
}
}
}
}