IProfile.cs 1.1 KB

12345678910111213141516171819202122232425262728293031323334353637383940
  1. namespace Ryujinx.HLE.HOS.Services.Account.Acc.AccountService
  2. {
  3. class IProfile : IpcService
  4. {
  5. private ProfileServer _profileServer;
  6. public IProfile(UserProfile profile)
  7. {
  8. _profileServer = new ProfileServer(profile);
  9. }
  10. [CommandHipc(0)]
  11. // Get() -> (nn::account::profile::ProfileBase, buffer<nn::account::profile::UserData, 0x1a>)
  12. public ResultCode Get(ServiceCtx context)
  13. {
  14. return _profileServer.Get(context);
  15. }
  16. [CommandHipc(1)]
  17. // GetBase() -> nn::account::profile::ProfileBase
  18. public ResultCode GetBase(ServiceCtx context)
  19. {
  20. return _profileServer.GetBase(context);
  21. }
  22. [CommandHipc(10)]
  23. // GetImageSize() -> u32
  24. public ResultCode GetImageSize(ServiceCtx context)
  25. {
  26. return _profileServer.GetImageSize(context);
  27. }
  28. [CommandHipc(11)]
  29. // LoadImage() -> (u32, buffer<bytes, 6>)
  30. public ResultCode LoadImage(ServiceCtx context)
  31. {
  32. return _profileServer.LoadImage(context);
  33. }
  34. }
  35. }