ILibraryAppletCreator.cs 949 B

1234567891011121314151617181920212223242526272829
  1. using Ryujinx.HLE.HOS.Services.Am.AppletAE.AllSystemAppletProxiesService.LibraryAppletCreator;
  2. namespace Ryujinx.HLE.HOS.Services.Am.AppletAE.AllSystemAppletProxiesService.SystemAppletProxy
  3. {
  4. class ILibraryAppletCreator : IpcService
  5. {
  6. public ILibraryAppletCreator() { }
  7. [Command(0)]
  8. // CreateLibraryApplet(u32, u32) -> object<nn::am::service::ILibraryAppletAccessor>
  9. public ResultCode CreateLibraryApplet(ServiceCtx context)
  10. {
  11. MakeObject(context, new ILibraryAppletAccessor(context.Device.System));
  12. return ResultCode.Success;
  13. }
  14. [Command(10)]
  15. // CreateStorage(u64) -> object<nn::am::service::IStorage>
  16. public ResultCode CreateStorage(ServiceCtx context)
  17. {
  18. long size = context.RequestData.ReadInt64();
  19. MakeObject(context, new IStorage(new byte[size]));
  20. return ResultCode.Success;
  21. }
  22. }
  23. }