acc_su.cpp 3.3 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970
  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_su.h"
  5. namespace Service::Account {
  6. ACC_SU::ACC_SU(std::shared_ptr<Module> module_, std::shared_ptr<ProfileManager> profile_manager_,
  7. Core::System& system_)
  8. : Interface(std::move(module_), std::move(profile_manager_), system_, "acc:su") {
  9. // clang-format off
  10. static const FunctionInfo functions[] = {
  11. {0, &ACC_SU::GetUserCount, "GetUserCount"},
  12. {1, &ACC_SU::GetUserExistence, "GetUserExistence"},
  13. {2, &ACC_SU::ListAllUsers, "ListAllUsers"},
  14. {3, &ACC_SU::ListOpenUsers, "ListOpenUsers"},
  15. {4, &ACC_SU::GetLastOpenedUser, "GetLastOpenedUser"},
  16. {5, &ACC_SU::GetProfile, "GetProfile"},
  17. {6, nullptr, "GetProfileDigest"},
  18. {50, &ACC_SU::IsUserRegistrationRequestPermitted, "IsUserRegistrationRequestPermitted"},
  19. {51, &ACC_SU::TrySelectUserWithoutInteraction, "TrySelectUserWithoutInteraction"},
  20. {60, &ACC_SU::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_SU::StoreSaveDataThumbnailSystem, "StoreSaveDataThumbnail"},
  30. {111, nullptr, "ClearSaveDataThumbnail"},
  31. {112, nullptr, "LoadSaveDataThumbnail"},
  32. {113, nullptr, "GetSaveDataThumbnailExistence"},
  33. {120, nullptr, "ListOpenUsersInApplication"},
  34. {130, nullptr, "ActivateOpenContextRetention"},
  35. {140, &ACC_SU::ListQualifiedUsers, "ListQualifiedUsers"},
  36. {150, nullptr, "AuthenticateApplicationAsync"},
  37. {151, nullptr, "Unknown151"},
  38. {152, nullptr, "Unknown152"},
  39. {190, nullptr, "GetUserLastOpenedApplication"},
  40. {191, nullptr, "ActivateOpenContextHolder"},
  41. {200, nullptr, "BeginUserRegistration"},
  42. {201, nullptr, "CompleteUserRegistration"},
  43. {202, nullptr, "CancelUserRegistration"},
  44. {203, nullptr, "DeleteUser"},
  45. {204, nullptr, "SetUserPosition"},
  46. {205, &ACC_SU::GetProfileEditor, "GetProfileEditor"},
  47. {206, nullptr, "CompleteUserRegistrationForcibly"},
  48. {210, nullptr, "CreateFloatingRegistrationRequest"},
  49. {211, nullptr, "CreateProcedureToRegisterUserWithNintendoAccount"},
  50. {212, nullptr, "ResumeProcedureToRegisterUserWithNintendoAccount"},
  51. {230, nullptr, "AuthenticateServiceAsync"},
  52. {250, nullptr, "GetBaasAccountAdministrator"},
  53. {290, nullptr, "ProxyProcedureForGuestLoginWithNintendoAccount"},
  54. {291, nullptr, "ProxyProcedureForFloatingRegistrationWithNintendoAccount"},
  55. {299, nullptr, "SuspendBackgroundDaemon"},
  56. {997, nullptr, "DebugInvalidateTokenCacheForUser"},
  57. {998, nullptr, "DebugSetUserStateClose"},
  58. {999, nullptr, "DebugSetUserStateOpen"},
  59. };
  60. // clang-format on
  61. RegisterHandlers(functions);
  62. }
  63. ACC_SU::~ACC_SU() = default;
  64. } // namespace Service::Account