mirror of
https://github.com/ryujinx-mirror/ryujinx.git
synced 2024-12-04 15:57:26 +00:00
36 lines
No EOL
1,014 B
C#
36 lines
No EOL
1,014 B
C#
using Ryujinx.Common.Logging;
|
|
|
|
namespace Ryujinx.HLE.HOS.Services.Am.AppletAE.AllSystemAppletProxiesService.SystemAppletProxy
|
|
{
|
|
class IWindowController : IpcService
|
|
{
|
|
private readonly ulong _pid;
|
|
|
|
public IWindowController(ulong pid)
|
|
{
|
|
_pid = pid;
|
|
}
|
|
|
|
[CommandHipc(1)]
|
|
// GetAppletResourceUserId() -> nn::applet::AppletResourceUserId
|
|
public ResultCode GetAppletResourceUserId(ServiceCtx context)
|
|
{
|
|
Logger.Stub?.PrintStub(LogClass.ServiceAm);
|
|
|
|
long appletResourceUserId = context.Device.System.AppletState.AppletResourceUserIds.Add(_pid);
|
|
|
|
context.ResponseData.Write(appletResourceUserId);
|
|
|
|
return ResultCode.Success;
|
|
}
|
|
|
|
[CommandHipc(10)]
|
|
// AcquireForegroundRights()
|
|
public ResultCode AcquireForegroundRights(ServiceCtx context)
|
|
{
|
|
Logger.Stub?.PrintStub(LogClass.ServiceAm);
|
|
|
|
return ResultCode.Success;
|
|
}
|
|
}
|
|
} |