diff options
| author | gdkchan <gab.dark.100@gmail.com> | 2018-03-12 01:04:52 -0300 |
|---|---|---|
| committer | gdkchan <gab.dark.100@gmail.com> | 2018-03-12 01:14:12 -0300 |
| commit | 7a27990faa557c5c93f52e5cb082d551ad119ed0 (patch) | |
| tree | a0800fded014a4a6afe738e5a65a17bc78cf0c19 /Ryujinx.Core/Switch.cs | |
| parent | 3aaa4717b6f7400bac862e589a1f345e70e78d56 (diff) | |
Allow more than one process, free resources on process dispose, implement SvcExitThread
Diffstat (limited to 'Ryujinx.Core/Switch.cs')
| -rw-r--r-- | Ryujinx.Core/Switch.cs | 19 |
1 files changed, 4 insertions, 15 deletions
diff --git a/Ryujinx.Core/Switch.cs b/Ryujinx.Core/Switch.cs index f7ce109f..487f3bdb 100644 --- a/Ryujinx.Core/Switch.cs +++ b/Ryujinx.Core/Switch.cs @@ -1,4 +1,3 @@ -using ChocolArm64.Memory; using Ryujinx.Core.Input; using Ryujinx.Core.OsHle; using Ryujinx.Core.Settings; @@ -10,8 +9,6 @@ namespace Ryujinx.Core { public class Switch : IDisposable { - internal AMemory Memory { get; private set; } - internal NsGpu Gpu { get; private set; } internal Horizon Os { get; private set; } internal VirtualFs VFs { get; private set; } @@ -24,13 +21,11 @@ namespace Ryujinx.Core public Switch(IGalRenderer Renderer) { - Memory = new AMemory(); - Gpu = new NsGpu(Renderer); VFs = new VirtualFs(); - Hid = new Hid(Memory); + Hid = new Hid(); Statistics = new PerformanceStatistics(); @@ -42,11 +37,6 @@ namespace Ryujinx.Core Settings = new SetSys(); } - public void FinalizeAllProcesses() - { - Os.FinalizeAllProcesses(); - } - public void LoadCart(string ExeFsDir, string RomFsFile = null) { Os.LoadCart(ExeFsDir, RomFsFile); @@ -67,12 +57,11 @@ namespace Ryujinx.Core Dispose(true); } - protected virtual void Dispose(bool disposing) + protected virtual void Dispose(bool Disposing) { - if (disposing) + if (Disposing) { - Memory.Dispose(); - + Os.Dispose(); VFs.Dispose(); } } |
