mirror of
https://git.743378673.xyz/MeloNX/MeloNX.git
synced 2025-07-28 09:27:10 +02:00
Move solution and projects to src
This commit is contained in:
parent
cd124bda58
commit
cee7121058
3466 changed files with 55 additions and 55 deletions
32
src/Ryujinx.HLE/HOS/Services/Mii/IStaticService.cs
Normal file
32
src/Ryujinx.HLE/HOS/Services/Mii/IStaticService.cs
Normal file
|
@ -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;
|
||||
}
|
||||
}
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue