mirror of
https://github.com/WinDurango/WinDurango.git
synced 2026-01-04 10:19:41 -06:00
Implement event handling and logging improvements
- Updated `ChatMuteList` to implement `UserMuteStateChanged` methods with logging and event handling. - Modified `UserDisplayInfo` methods to log informational messages instead of throwing exceptions. - Introduced `m_notificationPositionHint` in `SystemUI` and updated `SetNotificationPositionHint` to log changes. - Updated header files to declare new static members for better accessibility.
This commit is contained in:
@@ -6,39 +6,40 @@ namespace winrt::Windows::Xbox::System::implementation
|
||||
{
|
||||
hstring UserDisplayInfo::Gamertag()
|
||||
{
|
||||
LOG_NOT_IMPLEMENTED();
|
||||
LOG_INFO("UserDisplayInfo::Gamertag() called");
|
||||
hstring gamertag = L"durangler" + m_gamertag;
|
||||
return gamertag;
|
||||
}
|
||||
uint32_t UserDisplayInfo::GamerScore()
|
||||
{
|
||||
LOG_NOT_IMPLEMENTED(); return 0;
|
||||
LOG_INFO("UserDisplayInfo::GamerScore() called");
|
||||
return 0;
|
||||
}
|
||||
hstring UserDisplayInfo::ApplicationDisplayName()
|
||||
{
|
||||
LOG_NOT_IMPLEMENTED();
|
||||
LOG_INFO("UserDisplayInfo::GameDisplayName() called");
|
||||
return winrt::to_hstring("WinDurango");
|
||||
}
|
||||
hstring UserDisplayInfo::GameDisplayName()
|
||||
{
|
||||
|
||||
LOG_NOT_IMPLEMENTED();
|
||||
LOG_INFO("UserDisplayInfo::GameDisplayName() called");
|
||||
hstring gamertag = L"durangler" + m_gamertag;
|
||||
return gamertag;
|
||||
}
|
||||
int32_t UserDisplayInfo::Reputation()
|
||||
{
|
||||
LOG_NOT_IMPLEMENTED();
|
||||
LOG_INFO("UserDisplayInfo::Reputation() called");
|
||||
return 1;
|
||||
}
|
||||
winrt::Windows::Xbox::System::UserAgeGroup UserDisplayInfo::AgeGroup()
|
||||
{
|
||||
Logger::Info("UserDisplayInfo::AgeGroup() called");
|
||||
LOG_INFO("UserDisplayInfo::AgeGroup() called");
|
||||
return UserAgeGroup::Unknown;
|
||||
}
|
||||
winrt::Windows::Foundation::Collections::IVectorView<uint32_t> UserDisplayInfo::Privileges()
|
||||
{
|
||||
LOG_NOT_IMPLEMENTED();
|
||||
LOG_INFO("UserDisplayInfo::Privileges() called");
|
||||
auto vector = winrt::single_threaded_vector<uint32_t>();
|
||||
vector.Append(1);
|
||||
return vector.GetView();
|
||||
|
||||
Reference in New Issue
Block a user