Files
WinDurango/dlls/winrt_x/Implementation/Windows.Xbox.System.UserDisplayInfo.cpp
2025-04-22 16:53:50 -04:00

49 lines
1.7 KiB
C++

#include "pch.h"
#include "Windows.Xbox.System.UserDisplayInfo.h"
#include "Windows.Xbox.System.UserDisplayInfo.g.cpp"
namespace winrt::Windows::Xbox::System::implementation
{
hstring UserDisplayInfo::Gamertag()
{
printf("!!!!! Windows.Xbox.System.UserDisplayInfo [Gamertag] NOT IMPLEMENTED !!!!\n");
hstring gamertag = L"durangler" + m_gamertag;
return gamertag;
}
uint32_t UserDisplayInfo::GamerScore()
{
printf("!!!!! Windows.Xbox.System.UserDisplayInfo [GamerScore] NOT IMPLEMENTED !!!!\n");
return 0;
}
hstring UserDisplayInfo::ApplicationDisplayName()
{
printf("!!!!! Windows.Xbox.System.UserDisplayInfo [ApplicationDisplayName] NOT IMPLEMENTED !!!!\n");
return winrt::to_hstring("WinDurango");
}
hstring UserDisplayInfo::GameDisplayName()
{
printf("!!!!! Windows.Xbox.System.UserDisplayInfo [GameDisplayName] NOT IMPLEMENTED !!!!\n");
hstring gamertag = L"durangler" + m_gamertag;
return gamertag;
}
int32_t UserDisplayInfo::Reputation()
{
printf("!!!!! Windows.Xbox.System.UserDisplayInfo [Reputation] NOT IMPLEMENTED !!!!\n");
return 1;
}
winrt::Windows::Xbox::System::UserAgeGroup UserDisplayInfo::AgeGroup()
{
printf("!!!!! Windows.Xbox.System.UserDisplayInfo [AgeGroup] NOT IMPLEMENTED !!!!\n");
return UserAgeGroup::Unknown;
}
winrt::Windows::Foundation::Collections::IVectorView<uint32_t> UserDisplayInfo::Privileges()
{
printf("!!!!! Windows.Xbox.System.UserDisplayInfo [Privileges] NOT IMPLEMENTED !!!!\n");
auto vector = winrt::single_threaded_vector<uint32_t>();
vector.Append(1);
return vector.GetView();
}
}