diff options
| author | TSR Berry <20988865+TSRBerry@users.noreply.github.com> | 2023-04-08 01:22:00 +0200 |
|---|---|---|
| committer | Mary <thog@protonmail.com> | 2023-04-27 23:51:14 +0200 |
| commit | cee712105850ac3385cd0091a923438167433f9f (patch) | |
| tree | 4a5274b21d8b7f938c0d0ce18736d3f2993b11b1 /Ryujinx.HLE/HOS/SystemState/AppletStateMgr.cs | |
| parent | cd124bda587ef09668a971fa1cac1c3f0cfc9f21 (diff) | |
Move solution and projects to src
Diffstat (limited to 'Ryujinx.HLE/HOS/SystemState/AppletStateMgr.cs')
| -rw-r--r-- | Ryujinx.HLE/HOS/SystemState/AppletStateMgr.cs | 42 |
1 files changed, 0 insertions, 42 deletions
diff --git a/Ryujinx.HLE/HOS/SystemState/AppletStateMgr.cs b/Ryujinx.HLE/HOS/SystemState/AppletStateMgr.cs deleted file mode 100644 index 5704ef4b..00000000 --- a/Ryujinx.HLE/HOS/SystemState/AppletStateMgr.cs +++ /dev/null @@ -1,42 +0,0 @@ -using Ryujinx.HLE.HOS.Kernel.Threading; -using Ryujinx.HLE.HOS.Services.Am.AppletAE.AllSystemAppletProxiesService.SystemAppletProxy; -using System.Collections.Concurrent; - -namespace Ryujinx.HLE.HOS.SystemState -{ - class AppletStateMgr - { - public ConcurrentQueue<AppletMessage> Messages { get; } - - public FocusState FocusState { get; private set; } - - public KEvent MessageEvent { get; } - - public IdDictionary AppletResourceUserIds { get; } - - public IdDictionary IndirectLayerHandles { get; } - - public AppletStateMgr(Horizon system) - { - Messages = new ConcurrentQueue<AppletMessage>(); - MessageEvent = new KEvent(system.KernelContext); - - AppletResourceUserIds = new IdDictionary(); - IndirectLayerHandles = new IdDictionary(); - } - - public void SetFocus(bool isFocused) - { - FocusState = isFocused ? FocusState.InFocus : FocusState.OutOfFocus; - - Messages.Enqueue(AppletMessage.FocusStateChanged); - - if (isFocused) - { - Messages.Enqueue(AppletMessage.ChangeIntoForeground); - } - - MessageEvent.ReadableEvent.Signal(); - } - } -}
\ No newline at end of file |
