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
36 lines
998 B
C#
36 lines
998 B
C#
using LibHac;
|
|
using Ryujinx.HLE.HOS.Services.Fs.FileSystemProxy;
|
|
|
|
namespace Ryujinx.HLE.HOS.Services.Fs
|
|
{
|
|
class IMultiCommitManager : IpcService // 6.0.0+
|
|
{
|
|
private LibHac.FsSrv.IMultiCommitManager _baseCommitManager;
|
|
|
|
public IMultiCommitManager(LibHac.FsSrv.IMultiCommitManager baseCommitManager)
|
|
{
|
|
_baseCommitManager = baseCommitManager;
|
|
}
|
|
|
|
[CommandHipc(1)] // 6.0.0+
|
|
// Add(object<nn::fssrv::sf::IFileSystem>)
|
|
public ResultCode Add(ServiceCtx context)
|
|
{
|
|
IFileSystem fileSystem = GetObject<IFileSystem>(context, 0);
|
|
|
|
Result result = _baseCommitManager.Add(fileSystem.GetBaseFileSystem());
|
|
|
|
return (ResultCode)result.Value;
|
|
}
|
|
|
|
[CommandHipc(2)] // 6.0.0+
|
|
// Commit()
|
|
public ResultCode Commit(ServiceCtx context)
|
|
{
|
|
Result result = _baseCommitManager.Commit();
|
|
|
|
return (ResultCode)result.Value;
|
|
}
|
|
}
|
|
}
|