namespace Ryujinx.HLE.HOS.Services.Account.Acc.AccountService { class IProfile : IpcService { private ProfileServer _profileServer; public IProfile(UserProfile profile) { _profileServer = new ProfileServer(profile); } [CommandHipc(0)] // Get() -> (nn::account::profile::ProfileBase, buffer) public ResultCode Get(ServiceCtx context) { return _profileServer.Get(context); } [CommandHipc(1)] // GetBase() -> nn::account::profile::ProfileBase public ResultCode GetBase(ServiceCtx context) { return _profileServer.GetBase(context); } [CommandHipc(10)] // GetImageSize() -> u32 public ResultCode GetImageSize(ServiceCtx context) { return _profileServer.GetImageSize(context); } [CommandHipc(11)] // LoadImage() -> (u32, buffer) public ResultCode LoadImage(ServiceCtx context) { return _profileServer.LoadImage(context); } } }