From 65e04e9854fd5d7292ba235b05f80cecd89abec2 Mon Sep 17 00:00:00 2001 From: emmauss Date: Thu, 1 Mar 2018 22:23:55 +0200 Subject: [PATCH] stub set_sys (#49) --- Ryujinx.Core/OsHle/Services/ServiceFactory.cs | 1 + .../OsHle/Services/Set/ServiceSetSys.cs | 35 +++++++++++++++++++ 2 files changed, 36 insertions(+) create mode 100644 Ryujinx.Core/OsHle/Services/Set/ServiceSetSys.cs 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 m_Commands; + + public IReadOnlyDictionary Commands => m_Commands; + + public ServiceSetSys() + { + m_Commands = new Dictionary() + { + { 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