acc_u1.cpp 2.5 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253
  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"}, // 3.0.0+
  18. {50, &ACC_U1::IsUserRegistrationRequestPermitted, "IsUserRegistrationRequestPermitted"},
  19. {51, &ACC_U1::TrySelectUserWithoutInteraction, "TrySelectUserWithoutInteraction"},
  20. {60, &ACC_U1::ListOpenContextStoredUsers, "ListOpenContextStoredUsers"}, // 5.0.0 - 5.1.0
  21. {99, nullptr, "DebugActivateOpenContextRetention"}, // 6.0.0+
  22. {100, nullptr, "GetUserRegistrationNotifier"},
  23. {101, nullptr, "GetUserStateChangeNotifier"},
  24. {102, nullptr, "GetBaasAccountManagerForSystemService"},
  25. {103, nullptr, "GetBaasUserAvailabilityChangeNotifier"},
  26. {104, nullptr, "GetProfileUpdateNotifier"},
  27. {105, nullptr, "CheckNetworkServiceAvailabilityAsync"}, // 4.0.0+
  28. {106, nullptr, "GetProfileSyncNotifier"}, // 9.0.0+
  29. {110, nullptr, "StoreSaveDataThumbnail"},
  30. {111, nullptr, "ClearSaveDataThumbnail"},
  31. {112, nullptr, "LoadSaveDataThumbnail"},
  32. {113, nullptr, "GetSaveDataThumbnailExistence"}, // 5.0.0+
  33. {120, nullptr, "ListOpenUsersInApplication"}, // 10.0.0+
  34. {130, nullptr, "ActivateOpenContextRetention"}, // 6.0.0+
  35. {140, &ACC_U1::ListQualifiedUsers, "ListQualifiedUsers"}, // 6.0.0+
  36. {150, nullptr, "AuthenticateApplicationAsync"}, // 10.0.0+
  37. {190, nullptr, "GetUserLastOpenedApplication"}, // 1.0.0 - 9.2.0
  38. {191, nullptr, "ActivateOpenContextHolder"}, // 7.0.0+
  39. {997, nullptr, "DebugInvalidateTokenCacheForUser"}, // 3.0.0+
  40. {998, nullptr, "DebugSetUserStateClose"},
  41. {999, nullptr, "DebugSetUserStateOpen"},
  42. };
  43. // clang-format on
  44. RegisterHandlers(functions);
  45. }
  46. ACC_U1::~ACC_U1() = default;
  47. } // namespace Service::Account