aboutsummaryrefslogtreecommitdiff
path: root/Ryujinx.Core/Switch.cs
diff options
context:
space:
mode:
Diffstat (limited to 'Ryujinx.Core/Switch.cs')
-rw-r--r--Ryujinx.Core/Switch.cs10
1 files changed, 8 insertions, 2 deletions
diff --git a/Ryujinx.Core/Switch.cs b/Ryujinx.Core/Switch.cs
index 6f41da81..3f7b1e2b 100644
--- a/Ryujinx.Core/Switch.cs
+++ b/Ryujinx.Core/Switch.cs
@@ -27,10 +27,16 @@ namespace Ryujinx.Core
Ram = Marshal.AllocHGlobal((IntPtr)AMemoryMgr.RamSize);
Gpu = new NsGpu(Renderer);
+
VFs = new VirtualFs();
- Hid = new Hid(this);
- Os = new Horizon(this);
+ Hid = new Hid(Ram);
+
+ Os = new Horizon(this);
+
+ Os.HidSharedMem.MemoryMapped += Hid.ShMemMap;
+ Os.HidSharedMem.MemoryUnmapped += Hid.ShMemUnmap;
+
Settings = new SetSys();
}