aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authoremmauss <emmausssss@gmail.com>2018-03-01 22:23:55 +0200
committergdkchan <gab.dark.100@gmail.com>2018-03-01 17:23:55 -0300
commit65e04e9854fd5d7292ba235b05f80cecd89abec2 (patch)
tree1d3358b923d8bd718510b6d110ce23d51e084829
parent5d8a615c21eff7888ff4e36c122123560bcb0886 (diff)
stub set_sys (#49)
-rw-r--r--Ryujinx.Core/OsHle/Services/ServiceFactory.cs1
-rw-r--r--Ryujinx.Core/OsHle/Services/Set/ServiceSetSys.cs35
2 files changed, 36 insertions, 0 deletions
diff --git a/Ryujinx.Core/OsHle/Services/ServiceFactory.cs b/Ryujinx.Core/OsHle/Services/ServiceFactory.cs
index c5da717e..31c8aa2c 100644
--- a/Ryujinx.Core/OsHle/Services/ServiceFactory.cs
+++ b/Ryujinx.Core/OsHle/Services/ServiceFactory.cs
@@ -46,6 +46,7 @@ namespace Ryujinx.Core.OsHle.IpcServices
case "pctl:a": return new ServicePctl();
case "pl:u": return new ServicePl();
case "set": return new ServiceSet();
+ case "set:sys": return new ServiceSetSys();
case "sfdnsres": return new ServiceSfdnsres();
case "sm:": return new ServiceSm();
case "ssl": return new ServiceSsl();
diff --git a/Ryujinx.Core/OsHle/Services/Set/ServiceSetSys.cs b/Ryujinx.Core/OsHle/Services/Set/ServiceSetSys.cs
new file mode 100644
index 00000000..68b30354
--- /dev/null
+++ b/Ryujinx.Core/OsHle/Services/Set/ServiceSetSys.cs
@@ -0,0 +1,35 @@
+using ChocolArm64.Memory;
+using Ryujinx.Core.OsHle.Ipc;
+using System;
+using System.Collections.Generic;
+
+namespace Ryujinx.Core.OsHle.IpcServices.Set
+{
+ class ServiceSetSys : IIpcService
+ {
+ private Dictionary<int, ServiceProcessRequest> m_Commands;
+
+ public IReadOnlyDictionary<int, ServiceProcessRequest> Commands => m_Commands;
+
+ public ServiceSetSys()
+ {
+ m_Commands = new Dictionary<int, ServiceProcessRequest>()
+ {
+ { 23, GetColorSetId },
+ { 24, SetColorSetId }
+ };
+ }
+
+ public static long GetColorSetId(ServiceCtx Context)
+ {
+ //Use white system theme
+ Context.ResponseData.Write(1);
+ return 0;
+ }
+
+ public static long SetColorSetId(ServiceCtx Context)
+ {
+ return 0;
+ }
+ }
+} \ No newline at end of file