aboutsummaryrefslogtreecommitdiff
path: root/Ryujinx.Core/OsHle/Objects/Am/ISelfController.cs
diff options
context:
space:
mode:
authorgdkchan <gab.dark.100@gmail.com>2018-02-25 01:34:16 -0300
committergdkchan <gab.dark.100@gmail.com>2018-02-25 01:34:27 -0300
commitfba0bf873257c4ac17f4584036661be08a1694d3 (patch)
treed1677d09fd008b2dcfa7560e979460b277f76411 /Ryujinx.Core/OsHle/Objects/Am/ISelfController.cs
parenta4ff0d34848416a68dff9f165bb90afae7a4fd20 (diff)
Refactor IPC services to have commands into separate classes, fix readme url
Diffstat (limited to 'Ryujinx.Core/OsHle/Objects/Am/ISelfController.cs')
-rw-r--r--Ryujinx.Core/OsHle/Objects/Am/ISelfController.cs61
1 files changed, 0 insertions, 61 deletions
diff --git a/Ryujinx.Core/OsHle/Objects/Am/ISelfController.cs b/Ryujinx.Core/OsHle/Objects/Am/ISelfController.cs
deleted file mode 100644
index 712874e8..00000000
--- a/Ryujinx.Core/OsHle/Objects/Am/ISelfController.cs
+++ /dev/null
@@ -1,61 +0,0 @@
-using Ryujinx.Core.OsHle.Ipc;
-using System.Collections.Generic;
-
-namespace Ryujinx.Core.OsHle.Objects.Am
-{
- class ISelfController : IIpcInterface
- {
- private Dictionary<int, ServiceProcessRequest> m_Commands;
-
- public IReadOnlyDictionary<int, ServiceProcessRequest> Commands => m_Commands;
-
- public ISelfController()
- {
- m_Commands = new Dictionary<int, ServiceProcessRequest>()
- {
- { 10, SetScreenShotPermission },
- { 11, SetOperationModeChangedNotification },
- { 12, SetPerformanceModeChangedNotification },
- { 13, SetFocusHandlingMode },
- { 16, SetOutOfFocusSuspendingEnabled }
- };
- }
-
- public long SetScreenShotPermission(ServiceCtx Context)
- {
- bool Enable = Context.RequestData.ReadByte() != 0 ? true : false;
-
- return 0;
- }
-
- public long SetOperationModeChangedNotification(ServiceCtx Context)
- {
- bool Enable = Context.RequestData.ReadByte() != 0 ? true : false;
-
- return 0;
- }
-
- public long SetPerformanceModeChangedNotification(ServiceCtx Context)
- {
- bool Enable = Context.RequestData.ReadByte() != 0 ? true : false;
-
- return 0;
- }
-
- public long SetFocusHandlingMode(ServiceCtx Context)
- {
- bool Flag1 = Context.RequestData.ReadByte() != 0 ? true : false;
- bool Flag2 = Context.RequestData.ReadByte() != 0 ? true : false;
- bool Flag3 = Context.RequestData.ReadByte() != 0 ? true : false;
-
- return 0;
- }
-
- public long SetOutOfFocusSuspendingEnabled(ServiceCtx Context)
- {
- bool Enable = Context.RequestData.ReadByte() != 0 ? true : false;
-
- return 0;
- }
- }
-} \ No newline at end of file