YoYoGames/GDKExtension

Function xboxone_gamertag_for_user returns empty string for valid uid

Opened this issue · 2 comments

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

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

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