diff options
author | Ac_K <Acoustik666@gmail.com> | 2023-09-14 09:50:19 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-09-14 09:50:19 +0200 |
commit | e6700b314f1384f015666767baf9ea1d8411e330 (patch) | |
tree | 4adba27f9fd232e279d1697a54a4f3c4e374d806 /src/Ryujinx.HLE/HOS/Services/ServerBase.cs | |
parent | e2cfe6fe44b62d7aba1425ae2e621f50045f406c (diff) |
lbl: Migrate service to Horizon (#5628)1.1.1012
* lbl: Migrate service to Horizon
* Fix formatting
* Addresses gdkchan's feedback
* Fix comments
Diffstat (limited to 'src/Ryujinx.HLE/HOS/Services/ServerBase.cs')
-rw-r--r-- | src/Ryujinx.HLE/HOS/Services/ServerBase.cs | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/src/Ryujinx.HLE/HOS/Services/ServerBase.cs b/src/Ryujinx.HLE/HOS/Services/ServerBase.cs index f107f502..9d7e4d4c 100644 --- a/src/Ryujinx.HLE/HOS/Services/ServerBase.cs +++ b/src/Ryujinx.HLE/HOS/Services/ServerBase.cs @@ -6,6 +6,7 @@ using Ryujinx.HLE.HOS.Kernel; using Ryujinx.HLE.HOS.Kernel.Ipc; using Ryujinx.HLE.HOS.Kernel.Process; using Ryujinx.HLE.HOS.Kernel.Threading; +using Ryujinx.Horizon; using Ryujinx.Horizon.Common; using System; using System.Buffers; @@ -172,6 +173,13 @@ namespace Ryujinx.HLE.HOS.Services _selfProcess = KernelStatic.GetCurrentProcess(); _selfThread = KernelStatic.GetCurrentThread(); + HorizonStatic.Register( + default, + _context.Syscall, + _selfProcess.CpuMemory, + _selfThread.ThreadContext, + (int)_selfThread.ThreadContext.GetX(1)); + if (SmObjectFactory != null) { _context.Syscall.ManageNamedPort(out int serverPortHandle, "sm:", 50); |