aboutsummaryrefslogtreecommitdiff
path: root/src/Ryujinx.HLE/HOS/Services/Mii/IStaticService.cs
diff options
context:
space:
mode:
Diffstat (limited to 'src/Ryujinx.HLE/HOS/Services/Mii/IStaticService.cs')
-rw-r--r--src/Ryujinx.HLE/HOS/Services/Mii/IStaticService.cs32
1 files changed, 32 insertions, 0 deletions
diff --git a/src/Ryujinx.HLE/HOS/Services/Mii/IStaticService.cs b/src/Ryujinx.HLE/HOS/Services/Mii/IStaticService.cs
new file mode 100644
index 00000000..a7fc71c9
--- /dev/null
+++ b/src/Ryujinx.HLE/HOS/Services/Mii/IStaticService.cs
@@ -0,0 +1,32 @@
+using Ryujinx.Common;
+using Ryujinx.HLE.HOS.Services.Mii.StaticService;
+using Ryujinx.HLE.HOS.Services.Mii.Types;
+
+namespace Ryujinx.HLE.HOS.Services.Mii
+{
+ [Service("mii:e", true)]
+ [Service("mii:u", false)]
+ class IStaticService : IpcService
+ {
+ private DatabaseImpl _databaseImpl;
+
+ private bool _isSystem;
+
+ public IStaticService(ServiceCtx context, bool isSystem)
+ {
+ _isSystem = isSystem;
+ _databaseImpl = DatabaseImpl.Instance;
+ }
+
+ [CommandCmif(0)]
+ // GetDatabaseService(u32 mii_key_code) -> object<nn::mii::detail::IDatabaseService>
+ public ResultCode GetDatabaseService(ServiceCtx context)
+ {
+ SpecialMiiKeyCode miiKeyCode = context.RequestData.ReadStruct<SpecialMiiKeyCode>();
+
+ MakeObject(context, new DatabaseServiceImpl(_databaseImpl, _isSystem, miiKeyCode));
+
+ return ResultCode.Success;
+ }
+ }
+} \ No newline at end of file