mirror of
https://github.com/Ryujinx/Ryujinx.git
synced 2024-12-29 05:51:20 -08:00
0746b83edf
* Rename CommandAttribute as CommandHIpcAttribute to prepare for 12.x changes * Implement inital support for TIPC and adds SM command ids * *Ipc to *ipc * Missed a ref in last commit... * CommandAttributeTIpc to CommandAttributeTipc * Addresses comment and fixes some bugs around TIPC doesn't have any padding requirements as buffer C isn't a thing Fix for RegisterService inverting two argument only on TIPC
54 lines
1.7 KiB
C#
54 lines
1.7 KiB
C#
namespace Ryujinx.HLE.HOS.Services.Account.Acc.AccountService
|
|
{
|
|
class IProfileEditor : IpcService
|
|
{
|
|
private ProfileServer _profileServer;
|
|
|
|
public IProfileEditor(UserProfile profile)
|
|
{
|
|
_profileServer = new ProfileServer(profile);
|
|
}
|
|
|
|
[CommandHipc(0)]
|
|
// Get() -> (nn::account::profile::ProfileBase, buffer<nn::account::profile::UserData, 0x1a>)
|
|
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<bytes, 6>)
|
|
public ResultCode LoadImage(ServiceCtx context)
|
|
{
|
|
return _profileServer.LoadImage(context);
|
|
}
|
|
|
|
[CommandHipc(100)]
|
|
// Store(nn::account::profile::ProfileBase, buffer<nn::account::profile::UserData, 0x19>)
|
|
public ResultCode Store(ServiceCtx context)
|
|
{
|
|
return _profileServer.Store(context);
|
|
}
|
|
|
|
[CommandHipc(101)]
|
|
// StoreWithImage(nn::account::profile::ProfileBase, buffer<nn::account::profile::UserData, 0x19>, buffer<bytes, 5>)
|
|
public ResultCode StoreWithImage(ServiceCtx context)
|
|
{
|
|
return _profileServer.StoreWithImage(context);
|
|
}
|
|
}
|
|
} |