acc_su.cpp 3.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566
  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. : Module::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, nullptr, "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, nullptr, "StoreSaveDataThumbnail"},
  30. {111, nullptr, "ClearSaveDataThumbnail"},
  31. {112, nullptr, "LoadSaveDataThumbnail"},
  32. {113, nullptr, "GetSaveDataThumbnailExistence"},
  33. {130, nullptr, "ActivateOpenContextRetention"},
  34. {140, nullptr, "ListQualifiedUsers"},
  35. {190, nullptr, "GetUserLastOpenedApplication"},
  36. {191, nullptr, "ActivateOpenContextHolder"},
  37. {200, nullptr, "BeginUserRegistration"},
  38. {201, nullptr, "CompleteUserRegistration"},
  39. {202, nullptr, "CancelUserRegistration"},
  40. {203, nullptr, "DeleteUser"},
  41. {204, nullptr, "SetUserPosition"},
  42. {205, &ACC_SU::GetProfileEditor, "GetProfileEditor"},
  43. {206, nullptr, "CompleteUserRegistrationForcibly"},
  44. {210, nullptr, "CreateFloatingRegistrationRequest"},
  45. {211, nullptr, "CreateProcedureToRegisterUserWithNintendoAccount"},
  46. {212, nullptr, "ResumeProcedureToRegisterUserWithNintendoAccount"},
  47. {230, nullptr, "AuthenticateServiceAsync"},
  48. {250, nullptr, "GetBaasAccountAdministrator"},
  49. {290, nullptr, "ProxyProcedureForGuestLoginWithNintendoAccount"},
  50. {291, nullptr, "ProxyProcedureForFloatingRegistrationWithNintendoAccount"},
  51. {299, nullptr, "SuspendBackgroundDaemon"},
  52. {997, nullptr, "DebugInvalidateTokenCacheForUser"},
  53. {998, nullptr, "DebugSetUserStateClose"},
  54. {999, nullptr, "DebugSetUserStateOpen"},
  55. };
  56. // clang-format on
  57. RegisterHandlers(functions);
  58. }
  59. ACC_SU::~ACC_SU() = default;
  60. } // namespace Service::Account