Skip to content

Commit

Permalink
Implement IAllSystemAppletProxiesService: 350 (OpenSystemApplicationP…
Browse files Browse the repository at this point in the history
…roxy) (#237)

Implements IAllSystemAppletProxiesService: 350
(OpenSystemApplicationProxy)

This fixes a crash that occurs when launching an NSP forwarder generated
by Nro2Nsp.
  • Loading branch information
LukeWarnut authored Nov 14, 2024
1 parent 5fccfb7 commit cef88fe
Showing 1 changed file with 10 additions and 0 deletions.
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
using Ryujinx.HLE.HOS.Services.Am.AppletAE.AllSystemAppletProxiesService;
using Ryujinx.HLE.HOS.Services.Am.AppletOE.ApplicationProxyService;

namespace Ryujinx.HLE.HOS.Services.Am.AppletAE
{
Expand All @@ -25,5 +26,14 @@ public ResultCode OpenLibraryAppletProxy(ServiceCtx context)

return ResultCode.Success;
}

[CommandCmif(350)]
// OpenSystemApplicationProxy(u64, pid, handle<copy>) -> object<nn::am::service::IApplicationProxy>
public ResultCode OpenSystemApplicationProxy(ServiceCtx context)
{
MakeObject(context, new IApplicationProxy(context.Request.HandleDesc.PId));

return ResultCode.Success;
}
}
}

0 comments on commit cef88fe

Please sign in to comment.