IManagerForApplication.cs 1.1 KB

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