code-disaster / steamworks4j

A thin Java wrapper to access the Steamworks API
https://code-disaster.github.io/steamworks4j/
MIT License
468 stars 64 forks source link

Add pchIdentity param in getAuthTicketForWebApi #131

Closed Rizato closed 6 months ago

Rizato commented 1 year ago

Setting pchIdentity is essential for security in any games using p2p connections.

Overloads the function in SteamUser, and SteamUserNative because jnigen does not support nullable strings as method parameters.

Rizato commented 1 year ago

Per https://partner.steamgames.com/doc/api/ISteamUser#GetAuthTicketForWebApi

code-disaster commented 6 months ago

Implemented in ea07e36. Did it slightly different to avoid adding another function to the interface.