diff options
Diffstat (limited to 'src/Ryujinx.HLE/HOS/Services/Account/Acc/AccountService/IProfile.cs')
| -rw-r--r-- | src/Ryujinx.HLE/HOS/Services/Account/Acc/AccountService/IProfile.cs | 40 |
1 files changed, 40 insertions, 0 deletions
diff --git a/src/Ryujinx.HLE/HOS/Services/Account/Acc/AccountService/IProfile.cs b/src/Ryujinx.HLE/HOS/Services/Account/Acc/AccountService/IProfile.cs new file mode 100644 index 00000000..14911dfb --- /dev/null +++ b/src/Ryujinx.HLE/HOS/Services/Account/Acc/AccountService/IProfile.cs @@ -0,0 +1,40 @@ +namespace Ryujinx.HLE.HOS.Services.Account.Acc.AccountService +{ + class IProfile : IpcService + { + private ProfileServer _profileServer; + + public IProfile(UserProfile profile) + { + _profileServer = new ProfileServer(profile); + } + + [CommandCmif(0)] + // Get() -> (nn::account::profile::ProfileBase, buffer<nn::account::profile::UserData, 0x1a>) + public ResultCode Get(ServiceCtx context) + { + return _profileServer.Get(context); + } + + [CommandCmif(1)] + // GetBase() -> nn::account::profile::ProfileBase + public ResultCode GetBase(ServiceCtx context) + { + return _profileServer.GetBase(context); + } + + [CommandCmif(10)] + // GetImageSize() -> u32 + public ResultCode GetImageSize(ServiceCtx context) + { + return _profileServer.GetImageSize(context); + } + + [CommandCmif(11)] + // LoadImage() -> (u32, buffer<bytes, 6>) + public ResultCode LoadImage(ServiceCtx context) + { + return _profileServer.LoadImage(context); + } + } +}
\ No newline at end of file |
