acc_u0.h 1.1 KB

123456789101112131415161718192021222324252627282930313233343536373839
  1. // Copyright 2018 yuzu emulator team
  2. // Licensed under GPLv2 or any later version
  3. // Refer to the license.txt file included.
  4. #pragma once
  5. #include "core/hle/service/service.h"
  6. namespace Service {
  7. namespace Account {
  8. // TODO: RE this structure
  9. struct UserData {
  10. INSERT_PADDING_BYTES(0x80);
  11. };
  12. static_assert(sizeof(UserData) == 0x80, "UserData structure has incorrect size");
  13. // TODO: RE this structure
  14. struct ProfileBase {
  15. INSERT_PADDING_BYTES(0x38);
  16. };
  17. static_assert(sizeof(ProfileBase) == 0x38, "ProfileBase structure has incorrect size");
  18. class ACC_U0 final : public ServiceFramework<ACC_U0> {
  19. public:
  20. ACC_U0();
  21. ~ACC_U0() = default;
  22. private:
  23. void GetUserExistence(Kernel::HLERequestContext& ctx);
  24. void ListAllUsers(Kernel::HLERequestContext& ctx);
  25. void GetLastOpenedUser(Kernel::HLERequestContext& ctx);
  26. void GetProfile(Kernel::HLERequestContext& ctx);
  27. void InitializeApplicationInfo(Kernel::HLERequestContext& ctx);
  28. void GetBaasAccountManagerForApplication(Kernel::HLERequestContext& ctx);
  29. };
  30. } // namespace Account
  31. } // namespace Service