YoYoGames / GDKExtension

GMS2 Extension for GDK
Other
20 stars 9 forks source link

Function xboxone_gamertag_for_user returns empty string for valid uid #65

Open andrew171717 opened 2 years ago

andrew171717 commented 2 years ago

Testing code:

var xboxID = xboxone_get_activating_user();
global.myGamerTag = xboxone_gamertag_for_user(xboxID);
show_message("uid:["+string(xboxID)+"]Name:["+global.myGamerTag+"]");

show_message returns: image

andrew171717 commented 2 years ago

I attempted to change line 861 in YoYo_FunctionsM.cpp: from YYCreateString(&Result, user->ModernGamertag); to YYCreateString(&Result, user->DisplayName); and I now receive the display name that I expected to see. I'm not sure what ModernGamertag is supposed to return as I didn't really look into the code, but I wanted to share my results nonetheless.

image image

Prazon commented 1 year ago

Thanks for the fix, I'm not sure what the difference is as the GDK docs refer to the modern gamertag as a DisplayName