aboutsummaryrefslogtreecommitdiff
path: root/Ryujinx.HLE/HOS/Kernel/KernelStatic.cs
diff options
context:
space:
mode:
authorgdkchan <gab.dark.100@gmail.com>2022-05-03 18:28:32 -0300
committerGitHub <noreply@github.com>2022-05-03 23:28:32 +0200
commit556be08c4e9ad9f508dc2647ef70d3b89c2c242c (patch)
treeec3a0433def3bfc8f4a20e7cfcbe97bd73890ee1 /Ryujinx.HLE/HOS/Kernel/KernelStatic.cs
parent1cbca5eecbb6b7bce94dca864b5cffda4db02d39 (diff)
Implement PM GetProcessInfo atmosphere extension (partially) (#2966)1.1.112
Diffstat (limited to 'Ryujinx.HLE/HOS/Kernel/KernelStatic.cs')
-rw-r--r--Ryujinx.HLE/HOS/Kernel/KernelStatic.cs10
1 files changed, 10 insertions, 0 deletions
diff --git a/Ryujinx.HLE/HOS/Kernel/KernelStatic.cs b/Ryujinx.HLE/HOS/Kernel/KernelStatic.cs
index 2446ace4..625a007d 100644
--- a/Ryujinx.HLE/HOS/Kernel/KernelStatic.cs
+++ b/Ryujinx.HLE/HOS/Kernel/KernelStatic.cs
@@ -59,5 +59,15 @@ namespace Ryujinx.HLE.HOS.Kernel
{
return GetCurrentThread().Owner;
}
+
+ internal static KProcess GetProcessByPid(ulong pid)
+ {
+ if (Context.Processes.TryGetValue(pid, out KProcess process))
+ {
+ return process;
+ }
+
+ return null;
+ }
}
}