IManagerForApplication.cs 1.2 KB

12345678910111213141516171819202122232425262728293031323334353637383940
  1. using Ryujinx.Common.Logging;
  2. using Ryujinx.HLE.HOS.Services.Arp;
  3. using Ryujinx.HLE.Utilities;
  4. namespace Ryujinx.HLE.HOS.Services.Account.Acc
  5. {
  6. class IManagerForApplication : IpcService
  7. {
  8. private UInt128 _userId;
  9. private ApplicationLaunchProperty _applicationLaunchProperty;
  10. public IManagerForApplication(UInt128 userId, ApplicationLaunchProperty applicationLaunchProperty)
  11. {
  12. _userId = userId;
  13. _applicationLaunchProperty = applicationLaunchProperty;
  14. }
  15. [Command(0)]
  16. // CheckAvailability()
  17. public ResultCode CheckAvailability(ServiceCtx context)
  18. {
  19. Logger.PrintStub(LogClass.ServiceAcc);
  20. return ResultCode.Success;
  21. }
  22. [Command(1)]
  23. // GetAccountId() -> nn::account::NetworkServiceAccountId
  24. public ResultCode GetAccountId(ServiceCtx context)
  25. {
  26. long networkServiceAccountId = 0xcafe;
  27. Logger.PrintStub(LogClass.ServiceAcc, new { networkServiceAccountId });
  28. context.ResponseData.Write(networkServiceAccountId);
  29. return ResultCode.Success;
  30. }
  31. }
  32. }