diff options
author | Mary <me@thog.eu> | 2020-09-21 05:45:30 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-09-21 13:45:30 +1000 |
commit | 33f8284bc0f80b18bdce6f8e9a363f5b70388788 (patch) | |
tree | c48fe40f33cf90dab0fc08a4b2e327a07cfaf2a5 /Ryujinx/Ui/GtkHostUiHandler.cs | |
parent | 90ab28d1c6ecdcaec2d8a3df905de3c0639eb869 (diff) |
hle/ui: Basic multi programs support (#1560)
* hos/gui: Add a check of NCA program index in titleid
This add a check to `ApplicationLoader` for the last 2 digits of the game TitleId who seems to be the NCA program index.
We currently return the last index, instead of the lower one.
Same check is added to ApplicationLibrary in the UI.
I've cleaned up both file too.
* hle: implement partial relaunch logic
TODO: make the emulator auto relauch.
* Handle auto relaunch
* hle: Unify update usage system
* hle: Implement support of multi programs in update system
* Add some documentation
* Address rip's comment
Co-authored-by: Ac_K <Acoustik666@gmail.com>
Diffstat (limited to 'Ryujinx/Ui/GtkHostUiHandler.cs')
-rw-r--r-- | Ryujinx/Ui/GtkHostUiHandler.cs | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/Ryujinx/Ui/GtkHostUiHandler.cs b/Ryujinx/Ui/GtkHostUiHandler.cs index 90830056..fd193dd7 100644 --- a/Ryujinx/Ui/GtkHostUiHandler.cs +++ b/Ryujinx/Ui/GtkHostUiHandler.cs @@ -2,6 +2,7 @@ using Gtk; using Ryujinx.Common.Logging; using Ryujinx.HLE; using Ryujinx.HLE.HOS.Applets; +using Ryujinx.HLE.HOS.Services.Am.AppletOE.ApplicationProxyService.ApplicationProxy.Types; using System; using System.Threading; @@ -121,5 +122,11 @@ namespace Ryujinx.Ui return error || okPressed; } + + public void ExecuteProgram(HLE.Switch device, ProgramSpecifyKind kind, ulong value) + { + device.UserChannelPersistence.ExecuteProgram(kind, value); + MainWindow.GlWidget?.Exit(); + } } } |