2021-01-02 23:34:28 +01:00
|
|
|
namespace Ryujinx.HLE.HOS.Services.Account.Acc.AccountService
|
|
|
|
{
|
|
|
|
class IProfile : IpcService
|
|
|
|
{
|
|
|
|
private ProfileServer _profileServer;
|
|
|
|
|
|
|
|
public IProfile(UserProfile profile)
|
|
|
|
{
|
|
|
|
_profileServer = new ProfileServer(profile);
|
|
|
|
}
|
|
|
|
|
2023-04-15 01:00:34 +02:00
|
|
|
[CommandCmif(0)]
|
2021-01-02 23:34:28 +01:00
|
|
|
// Get() -> (nn::account::profile::ProfileBase, buffer<nn::account::profile::UserData, 0x1a>)
|
|
|
|
public ResultCode Get(ServiceCtx context)
|
|
|
|
{
|
|
|
|
return _profileServer.Get(context);
|
|
|
|
}
|
|
|
|
|
2023-04-15 01:00:34 +02:00
|
|
|
[CommandCmif(1)]
|
2021-01-02 23:34:28 +01:00
|
|
|
// GetBase() -> nn::account::profile::ProfileBase
|
|
|
|
public ResultCode GetBase(ServiceCtx context)
|
|
|
|
{
|
|
|
|
return _profileServer.GetBase(context);
|
|
|
|
}
|
|
|
|
|
2023-04-15 01:00:34 +02:00
|
|
|
[CommandCmif(10)]
|
2021-01-02 23:34:28 +01:00
|
|
|
// GetImageSize() -> u32
|
|
|
|
public ResultCode GetImageSize(ServiceCtx context)
|
|
|
|
{
|
|
|
|
return _profileServer.GetImageSize(context);
|
|
|
|
}
|
|
|
|
|
2023-04-15 01:00:34 +02:00
|
|
|
[CommandCmif(11)]
|
2021-01-02 23:34:28 +01:00
|
|
|
// LoadImage() -> (u32, buffer<bytes, 6>)
|
|
|
|
public ResultCode LoadImage(ServiceCtx context)
|
|
|
|
{
|
|
|
|
return _profileServer.LoadImage(context);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|