acc_u1.cpp 2.5 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455
  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, &ACC_U1::ListOpenContextStoredUsers, "ListOpenContextStoredUsers"},
  21. {99, nullptr, "DebugActivateOpenContextRetention"},
  22. {100, nullptr, "GetUserRegistrationNotifier"},
  23. {101, nullptr, "GetUserStateChangeNotifier"},
  24. {102, nullptr, "GetBaasAccountManagerForSystemService"},
  25. {103, nullptr, "GetBaasUserAvailabilityChangeNotifier"},
  26. {104, nullptr, "GetProfileUpdateNotifier"},
  27. {105, nullptr, "CheckNetworkServiceAvailabilityAsync"},
  28. {106, nullptr, "GetProfileSyncNotifier"},
  29. {110, &ACC_U1::StoreSaveDataThumbnailApplication, "StoreSaveDataThumbnail"},
  30. {111, nullptr, "ClearSaveDataThumbnail"},
  31. {112, nullptr, "LoadSaveDataThumbnail"},
  32. {113, nullptr, "GetSaveDataThumbnailExistence"},
  33. {120, nullptr, "ListOpenUsersInApplication"},
  34. {130, nullptr, "ActivateOpenContextRetention"},
  35. {140, &ACC_U1::ListQualifiedUsers, "ListQualifiedUsers"},
  36. {150, nullptr, "AuthenticateApplicationAsync"},
  37. {151, nullptr, "Unknown151"},
  38. {152, nullptr, "Unknown152"},
  39. {190, nullptr, "GetUserLastOpenedApplication"},
  40. {191, nullptr, "ActivateOpenContextHolder"},
  41. {997, nullptr, "DebugInvalidateTokenCacheForUser"},
  42. {998, nullptr, "DebugSetUserStateClose"},
  43. {999, nullptr, "DebugSetUserStateOpen"},
  44. };
  45. // clang-format on
  46. RegisterHandlers(functions);
  47. }
  48. ACC_U1::~ACC_U1() = default;
  49. } // namespace Service::Account