samsface / godot-steam-api

Godot Steam integration using GDNative.
403 stars 16 forks source link

Can't get Steam Username #19

Closed DaelonSuzuka closed 2 years ago

DaelonSuzuka commented 2 years ago

There doesn't seem to be a way to get the user's Steam name.

Steamworks API docs say that I need to call ISteamFriends.GetPersonaName, but for some reason that's not exposed in the API here.

This seems like a very basic thing I might want to do, so is a different method to achieve this already implemented?

samsface commented 2 years ago

The whole API isn’t exposed, I add stuff as people request it. It looks like a simple function to add though, open a PR and I’ll merge. Else I’ll add it this week when I can 🙏.

samsface commented 2 years ago

@DaelonSuzuka I've added now, can you test it works so can close the issue?

DaelonSuzuka commented 2 years ago

Wow, that was fast, thanks a lot!

It works fine on Windows as far as I can tell.

image

samsface commented 2 years ago

Awesome, will close :sunglasses: