mirror of
https://codeberg.org/WinDurango/WinDurango.git
synced 2026-04-18 02:23:34 -04:00
Fixes
This commit is contained in:
@@ -1,95 +0,0 @@
|
||||
#pragma once
|
||||
#include "Windows.Xbox.System.User.g.h"
|
||||
#include "Windows.Xbox.System.UserAddedEventArgs.g.h"
|
||||
#include "Windows.Xbox.System.UserRemovedEventArgs.g.h"
|
||||
#include "Windows.Xbox.System.UserDisplayInfo.h"
|
||||
#include "Windows.Xbox.System.h"
|
||||
|
||||
namespace winrt::Windows::Xbox::System::implementation
|
||||
{
|
||||
struct UserAddedEventArgs : UserAddedEventArgsT<UserAddedEventArgs>
|
||||
{
|
||||
UserAddedEventArgs() = default;
|
||||
UserAddedEventArgs(winrt::Windows::Xbox::System::User user) : m_user(user) {}
|
||||
|
||||
winrt::Windows::Xbox::System::User User();
|
||||
private:
|
||||
winrt::Windows::Xbox::System::User m_user;
|
||||
};
|
||||
|
||||
struct UserRemovedEventArgs : UserRemovedEventArgsT<UserRemovedEventArgs>
|
||||
{
|
||||
UserRemovedEventArgs() = default;
|
||||
UserRemovedEventArgs(winrt::Windows::Xbox::System::User user) : m_user(user) {}
|
||||
|
||||
winrt::Windows::Xbox::System::User User();
|
||||
private:
|
||||
winrt::Windows::Xbox::System::User m_user;
|
||||
};
|
||||
|
||||
struct User : UserT<User>
|
||||
{
|
||||
User() = default;
|
||||
User(uint32_t id) : id(id) {}
|
||||
|
||||
static winrt::Windows::Xbox::System::UserOnlineState OnlineState();
|
||||
static winrt::event_token OnlineStateChanged(winrt::Windows::Foundation::EventHandler<winrt::Windows::Xbox::System::OnlineStateChangedEventArgs> const& handler);
|
||||
static void OnlineStateChanged(winrt::event_token const& token) noexcept;
|
||||
static winrt::Windows::Foundation::Collections::IVectorView<winrt::Windows::Xbox::System::User> Users();
|
||||
static winrt::event_token UserAdded(winrt::Windows::Foundation::EventHandler<winrt::Windows::Xbox::System::UserAddedEventArgs> const& handler);
|
||||
static void UserAdded(winrt::event_token const& token) noexcept;
|
||||
static winrt::event_token UserRemoved(winrt::Windows::Foundation::EventHandler<winrt::Windows::Xbox::System::UserRemovedEventArgs> const& handler);
|
||||
static void UserRemoved(winrt::event_token const& token) noexcept;
|
||||
static winrt::Windows::Xbox::System::User GetUserById(uint32_t Id);
|
||||
static winrt::Windows::Foundation::IAsyncOperation<winrt::Windows::Xbox::System::GetTokenAndSignatureResult> GetTokenAndSignatureForAllUsersAsync(hstring method, hstring url, hstring headers);
|
||||
static winrt::Windows::Foundation::IAsyncOperation<winrt::Windows::Xbox::System::GetTokenAndSignatureResult> GetTokenAndSignatureForAllUsersAsync(hstring method, hstring url, hstring headers, winrt::Windows::Foundation::Collections::IVector<uint8_t> body);
|
||||
static winrt::Windows::Foundation::IAsyncOperation<winrt::Windows::Xbox::System::GetTokenAndSignatureResult> GetTokenAndSignatureForAllUsersAsync(hstring method, hstring url, hstring headers, hstring body);
|
||||
static winrt::event_token AudioDeviceAdded(winrt::Windows::Foundation::EventHandler<winrt::Windows::Xbox::System::AudioDeviceAddedEventArgs> const& handler);
|
||||
static void AudioDeviceAdded(winrt::event_token const& token) noexcept;
|
||||
static winrt::event_token AudioDeviceRemoved(winrt::Windows::Foundation::EventHandler<winrt::Windows::Xbox::System::AudioDeviceRemovedEventArgs> const& handler);
|
||||
static void AudioDeviceRemoved(winrt::event_token const& token) noexcept;
|
||||
static winrt::event_token AudioDeviceChanged(winrt::Windows::Foundation::EventHandler<winrt::Windows::Xbox::System::AudioDeviceChangedEventArgs> const& handler);
|
||||
static void AudioDeviceChanged(winrt::event_token const& token) noexcept;
|
||||
static winrt::event_token SignInCompleted(winrt::Windows::Foundation::EventHandler<winrt::Windows::Xbox::System::SignInCompletedEventArgs> const& handler);
|
||||
static void SignInCompleted(winrt::event_token const& token) noexcept;
|
||||
static winrt::event_token SignOutStarted(winrt::Windows::Foundation::EventHandler<winrt::Windows::Xbox::System::SignOutStartedEventArgs> const& handler);
|
||||
static void SignOutStarted(winrt::event_token const& token) noexcept;
|
||||
static winrt::event_token SignOutCompleted(winrt::Windows::Foundation::EventHandler<winrt::Windows::Xbox::System::SignOutCompletedEventArgs> const& handler);
|
||||
static void SignOutCompleted(winrt::event_token const& token) noexcept;
|
||||
static winrt::event_token UserDisplayInfoChanged(winrt::Windows::Foundation::EventHandler<winrt::Windows::Xbox::System::UserDisplayInfoChangedEventArgs> const& handler);
|
||||
static void UserDisplayInfoChanged(winrt::event_token const& token) noexcept;
|
||||
static winrt::guid GetNetworkCacheIdForUsers(winrt::Windows::Foundation::Collections::IVectorView<uint32_t> const& unk);
|
||||
uint32_t Id();
|
||||
winrt::Windows::Foundation::Collections::IVectorView<winrt::Windows::Xbox::System::AudioDeviceInfo> AudioDevices();
|
||||
winrt::Windows::Foundation::Collections::IVectorView<winrt::Windows::Xbox::Input::IController> Controllers();
|
||||
winrt::Windows::Xbox::System::UserDisplayInfo DisplayInfo();
|
||||
bool IsGuest();
|
||||
bool IsSignedIn();
|
||||
winrt::Windows::Xbox::System::UserLocation Location();
|
||||
winrt::Windows::Xbox::System::User Sponsor();
|
||||
hstring XboxUserHash();
|
||||
hstring XboxUserId();
|
||||
winrt::Windows::Foundation::IAsyncOperation<winrt::Windows::Xbox::System::GetTokenAndSignatureResult> GetTokenAndSignatureAsync(hstring method, hstring url, hstring headers);
|
||||
winrt::Windows::Foundation::IAsyncOperation<winrt::Windows::Xbox::System::GetTokenAndSignatureResult> GetTokenAndSignatureAsync(hstring method, hstring url, hstring headers, winrt::Windows::Foundation::Collections::IVector<uint8_t> body);
|
||||
winrt::Windows::Foundation::IAsyncOperation<winrt::Windows::Xbox::System::GetTokenAndSignatureResult> GetTokenAndSignatureAsync(hstring method, hstring url, hstring headers, hstring body);
|
||||
private:
|
||||
uint32_t id = 0;
|
||||
static winrt::event<winrt::Windows::Foundation::EventHandler<winrt::Windows::Xbox::System::OnlineStateChangedEventArgs>> m_OnlineStateChanged;
|
||||
static winrt::event<winrt::Windows::Foundation::EventHandler<winrt::Windows::Xbox::System::UserAddedEventArgs>> m_UserAdded;
|
||||
static winrt::event<winrt::Windows::Foundation::EventHandler<winrt::Windows::Xbox::System::UserRemovedEventArgs>> m_UserRemoved;
|
||||
static winrt::event<winrt::Windows::Foundation::EventHandler<winrt::Windows::Xbox::System::AudioDeviceAddedEventArgs>> m_AudioDeviceAdded;
|
||||
static winrt::event<winrt::Windows::Foundation::EventHandler<winrt::Windows::Xbox::System::AudioDeviceRemovedEventArgs>> m_AudioDeviceRemoved;
|
||||
static winrt::event<winrt::Windows::Foundation::EventHandler<winrt::Windows::Xbox::System::AudioDeviceChangedEventArgs>> m_AudioDeviceChanged;
|
||||
static winrt::event<winrt::Windows::Foundation::EventHandler<winrt::Windows::Xbox::System::SignInCompletedEventArgs>> m_SignInCompleted;
|
||||
static winrt::event<winrt::Windows::Foundation::EventHandler<winrt::Windows::Xbox::System::SignOutStartedEventArgs>> m_SignOutStarted;
|
||||
static winrt::event<winrt::Windows::Foundation::EventHandler<winrt::Windows::Xbox::System::SignOutCompletedEventArgs>> m_SignOutCompleted;
|
||||
static winrt::event<winrt::Windows::Foundation::EventHandler<winrt::Windows::Xbox::System::UserDisplayInfoChangedEventArgs>> m_UserDisplayInfoChanged;
|
||||
static winrt::Windows::Foundation::Collections::IVector<winrt::Windows::Xbox::System::User> a_users;
|
||||
};
|
||||
}
|
||||
namespace winrt::Windows::Xbox::System::factory_implementation
|
||||
{
|
||||
struct User : UserT<User, implementation::User>
|
||||
{
|
||||
};
|
||||
}
|
||||
@@ -21,7 +21,7 @@ namespace wd::common
|
||||
return _inited;
|
||||
}
|
||||
|
||||
void WinDurango::Init(std::shared_ptr<interfaces::storage::Directory> rootDir)
|
||||
void WinDurango::Init(std::shared_ptr<interfaces::storage::Directory> root)
|
||||
{
|
||||
if (this->_inited)
|
||||
{
|
||||
@@ -29,6 +29,7 @@ namespace wd::common
|
||||
}
|
||||
try
|
||||
{
|
||||
rootDir = root;
|
||||
rootDir->open();
|
||||
|
||||
std::time_t timestamp = std::time(nullptr);
|
||||
|
||||
@@ -70,7 +70,7 @@ namespace winrt::Windows::Xbox::System::implementation
|
||||
hstring XboxUserHash();
|
||||
hstring XboxUserId();
|
||||
winrt::Windows::Foundation::IAsyncOperation<winrt::Windows::Xbox::System::GetTokenAndSignatureResult> GetTokenAndSignatureAsync(hstring method, hstring url, hstring headers);
|
||||
winrt::Windows::Foundation::IAsyncOperation<winrt::Windows::Xbox::System::GetTokenAndSignatureResult> GetTokenAndSignatureAsync(hstring method, hstring url, hstring headers, winrt::Windows::Foundation::Collections::IVector<uint8_t> body);
|
||||
winrt::Windows::Foundation::IAsyncOperation<winrt::Windows::Xbox::System::GetTokenAndSignatureResult> GetTokenAndSignatureAsync(hstring method, hstring url, hstring headers, uint32_t __bodySize, uint8_t body);
|
||||
winrt::Windows::Foundation::IAsyncOperation<winrt::Windows::Xbox::System::GetTokenAndSignatureResult> GetTokenAndSignatureAsync(hstring method, hstring url, hstring headers, hstring body);
|
||||
private:
|
||||
uint32_t id = 0;
|
||||
|
||||
@@ -232,7 +232,7 @@ namespace winrt::Windows::Xbox::System::implementation
|
||||
throw hresult_not_implemented();
|
||||
}
|
||||
|
||||
winrt::Windows::Foundation::IAsyncOperation<winrt::Windows::Xbox::System::GetTokenAndSignatureResult> User::GetTokenAndSignatureAsync(hstring method, hstring url, hstring headers, winrt::Windows::Foundation::Collections::IVector<uint8_t> body)
|
||||
winrt::Windows::Foundation::IAsyncOperation<winrt::Windows::Xbox::System::GetTokenAndSignatureResult> User::GetTokenAndSignatureAsync(hstring method, hstring url, hstring headers, uint32_t __bodySize, uint8_t body)
|
||||
{
|
||||
p_wd->log.Warn("WinDurango::WinRT::Windows::Xbox::System", "Unimplemented: GetTokenAndSignatureAsync(hstring, hstring, hstring, array<uint8_t>)");
|
||||
throw hresult_not_implemented();
|
||||
|
||||
Reference in New Issue
Block a user