acc_u1.cpp 2.3 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152
  1. // Copyright 2018 yuzu emulator team
  2. // Licensed under GPLv2 or any later version
  3. // Refer to the license.txt file included.
  4. #include "core/hle/service/acc/acc_u1.h"
  5. namespace Service::Account {
  6. ACC_U1::ACC_U1(std::shared_ptr<Module> module, std::shared_ptr<ProfileManager> profile_manager,
  7. Core::System& system)
  8. : Module::Interface(std::move(module), std::move(profile_manager), system, "acc:u1") {
  9. // clang-format off
  10. static const FunctionInfo functions[] = {
  11. {0, &ACC_U1::GetUserCount, "GetUserCount"},
  12. {1, &ACC_U1::GetUserExistence, "GetUserExistence"},
  13. {2, &ACC_U1::ListAllUsers, "ListAllUsers"},
  14. {3, &ACC_U1::ListOpenUsers, "ListOpenUsers"},
  15. {4, &ACC_U1::GetLastOpenedUser, "GetLastOpenedUser"},
  16. {5, &ACC_U1::GetProfile, "GetProfile"},
  17. {6, nullptr, "GetProfileDigest"},
  18. {50, &ACC_U1::IsUserRegistrationRequestPermitted, "IsUserRegistrationRequestPermitted"},
  19. {51, &ACC_U1::TrySelectUserWithoutInteraction, "TrySelectUserWithoutInteraction"},
  20. {60, nullptr, "ListOpenContextStoredUsers"},
  21. {99, nullptr, "DebugActivateOpenContextRetention"},
  22. {100, nullptr, "GetUserRegistrationNotifier"},
  23. {101, nullptr, "GetUserStateChangeNotifier"},
  24. {102, nullptr, "GetBaasAccountManagerForSystemService"},
  25. {103, nullptr, "GetProfileUpdateNotifier"},
  26. {104, nullptr, "CheckNetworkServiceAvailabilityAsync"},
  27. {105, nullptr, "GetBaasUserAvailabilityChangeNotifier"},
  28. {106, nullptr, "GetProfileSyncNotifier"},
  29. {110, nullptr, "StoreSaveDataThumbnail"},
  30. {111, nullptr, "ClearSaveDataThumbnail"},
  31. {112, nullptr, "LoadSaveDataThumbnail"},
  32. {113, nullptr, "GetSaveDataThumbnailExistence"},
  33. {130, nullptr, "ActivateOpenContextRetention"},
  34. {140, &ACC_U1::ListQualifiedUsers, "ListQualifiedUsers"},
  35. {150, nullptr, "AuthenticateApplicationAsync"},
  36. {190, nullptr, "GetUserLastOpenedApplication"},
  37. {191, nullptr, "ActivateOpenContextHolder"},
  38. {997, nullptr, "DebugInvalidateTokenCacheForUser"},
  39. {998, nullptr, "DebugSetUserStateClose"},
  40. {999, nullptr, "DebugSetUserStateOpen"},
  41. };
  42. // clang-format on
  43. RegisterHandlers(functions);
  44. }
  45. ACC_U1::~ACC_U1() = default;
  46. } // namespace Service::Account