aboutsummaryrefslogtreecommitdiff
path: root/Ryujinx.HLE/Switch.cs
diff options
context:
space:
mode:
Diffstat (limited to 'Ryujinx.HLE/Switch.cs')
-rw-r--r--Ryujinx.HLE/Switch.cs29
1 files changed, 15 insertions, 14 deletions
diff --git a/Ryujinx.HLE/Switch.cs b/Ryujinx.HLE/Switch.cs
index 61e5e572..62d14a54 100644
--- a/Ryujinx.HLE/Switch.cs
+++ b/Ryujinx.HLE/Switch.cs
@@ -6,6 +6,7 @@ using Ryujinx.HLE.FileSystem;
using Ryujinx.HLE.HOS;
using Ryujinx.HLE.HOS.Services.Apm;
using Ryujinx.HLE.HOS.Services.Hid;
+using Ryujinx.HLE.Loaders.Processes;
using Ryujinx.HLE.Ui;
using Ryujinx.Memory;
using System;
@@ -20,7 +21,7 @@ namespace Ryujinx.HLE
public GpuContext Gpu { get; }
public VirtualFileSystem FileSystem { get; }
public HOS.Horizon System { get; }
- public ApplicationLoader Application { get; }
+ public ProcessLoader Processes { get; }
public PerformanceStatistics Statistics { get; }
public Hid Hid { get; }
public TamperMachine TamperMachine { get; }
@@ -50,7 +51,7 @@ namespace Ryujinx.HLE
System = new HOS.Horizon(this);
Statistics = new PerformanceStatistics();
Hid = new Hid(this, System.HidStorage);
- Application = new ApplicationLoader(this);
+ Processes = new ProcessLoader(this);
TamperMachine = new TamperMachine();
System.State.SetLanguage(Configuration.SystemLanguage);
@@ -64,29 +65,29 @@ namespace Ryujinx.HLE
System.GlobalAccessLogMode = Configuration.FsGlobalAccessLogMode;
}
- public void LoadCart(string exeFsDir, string romFsFile = null)
+ public bool LoadCart(string exeFsDir, string romFsFile = null)
{
- Application.LoadCart(exeFsDir, romFsFile);
+ return Processes.LoadUnpackedNca(exeFsDir, romFsFile);
}
- public void LoadXci(string xciFile)
+ public bool LoadXci(string xciFile)
{
- Application.LoadXci(xciFile);
+ return Processes.LoadXci(xciFile);
}
- public void LoadNca(string ncaFile)
+ public bool LoadNca(string ncaFile)
{
- Application.LoadNca(ncaFile);
+ return Processes.LoadNca(ncaFile);
}
- public void LoadNsp(string nspFile)
+ public bool LoadNsp(string nspFile)
{
- Application.LoadNsp(nspFile);
+ return Processes.LoadNsp(nspFile);
}
- public void LoadProgram(string fileName)
+ public bool LoadProgram(string fileName)
{
- Application.LoadProgram(fileName);
+ return Processes.LoadNxo(fileName);
}
public bool WaitFifo()
@@ -123,7 +124,7 @@ namespace Ryujinx.HLE
public void EnableCheats()
{
- FileSystem.ModLoader.EnableCheats(Application.TitleId, TamperMachine);
+ FileSystem.ModLoader.EnableCheats(Processes.ActiveApplication.ProgramId, TamperMachine);
}
public bool IsAudioMuted()
@@ -152,4 +153,4 @@ namespace Ryujinx.HLE
}
}
}
-} \ No newline at end of file
+}