mirror of
https://github.com/WinDurango/WinDurango.git
synced 2026-01-06 11:19:42 -06:00
Renamed functions in `dllmain.cpp` and `hooks.h` for clarity, including `XWinePatchImport` to `XPatchImport` and `XWineGetImport` to `XGetImport`. Added `<atlbase.h>` include in `hooks.h`. Updated comments to reflect contributions from the "XWine1 Team". Standardized logging for unimplemented methods across various Xbox Services and Kinect classes, ensuring consistent use of `LOG_NOT_IMPLEMENTED()`. Implemented new methods in `MultiplayerService`, `PresenceService`, `CatalogService`, `InventoryService`, and `PrivacyService` to enhance functionality related to multiplayer sessions, user presence, catalog management, and privacy settings. Overall, these changes improve code organization, readability, and maintainability while laying the groundwork for future enhancements.
47 lines
1.3 KiB
C++
47 lines
1.3 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()
|
|
{
|
|
LOG_NOT_IMPLEMENTED();
|
|
hstring gamertag = L"durangler" + m_gamertag;
|
|
return gamertag;
|
|
}
|
|
uint32_t UserDisplayInfo::GamerScore()
|
|
{
|
|
LOG_NOT_IMPLEMENTED(); return 0;
|
|
}
|
|
hstring UserDisplayInfo::ApplicationDisplayName()
|
|
{
|
|
LOG_NOT_IMPLEMENTED();
|
|
return winrt::to_hstring("WinDurango");
|
|
}
|
|
hstring UserDisplayInfo::GameDisplayName()
|
|
{
|
|
|
|
LOG_NOT_IMPLEMENTED();
|
|
hstring gamertag = L"durangler" + m_gamertag;
|
|
return gamertag;
|
|
}
|
|
int32_t UserDisplayInfo::Reputation()
|
|
{
|
|
LOG_NOT_IMPLEMENTED();
|
|
return 1;
|
|
}
|
|
winrt::Windows::Xbox::System::UserAgeGroup UserDisplayInfo::AgeGroup()
|
|
{
|
|
Logger::Info("UserDisplayInfo::AgeGroup() called");
|
|
return UserAgeGroup::Unknown;
|
|
}
|
|
winrt::Windows::Foundation::Collections::IVectorView<uint32_t> UserDisplayInfo::Privileges()
|
|
{
|
|
LOG_NOT_IMPLEMENTED();
|
|
auto vector = winrt::single_threaded_vector<uint32_t>();
|
|
vector.Append(1);
|
|
return vector.GetView();
|
|
}
|
|
}
|