0746b83edf
* Rename CommandAttribute as CommandHIpcAttribute to prepare for 12.x changes * Implement inital support for TIPC and adds SM command ids * *Ipc to *ipc * Missed a ref in last commit... * CommandAttributeTIpc to CommandAttributeTipc * Addresses comment and fixes some bugs around TIPC doesn't have any padding requirements as buffer C isn't a thing Fix for RegisterService inverting two argument only on TIPC
21 lines
619 B
C#
21 lines
619 B
C#
namespace Ryujinx.HLE.HOS.Services.Pm
|
|
{
|
|
[Service("pm:shell")]
|
|
class IShellInterface : IpcService
|
|
{
|
|
public IShellInterface(ServiceCtx context) { }
|
|
|
|
[CommandHipc(6)]
|
|
// GetApplicationPid() -> u64
|
|
public ResultCode GetApplicationPid(ServiceCtx context)
|
|
{
|
|
// FIXME: This is wrong but needed to make hb loader works
|
|
// TODO: Change this when we will have a way to process via a PM like interface.
|
|
long pid = context.Process.Pid;
|
|
|
|
context.ResponseData.Write(pid);
|
|
|
|
return ResultCode.Success;
|
|
}
|
|
}
|
|
}
|