Add IMultiCommitManager (#1011)
* Update LibHac * Add IMultiCommitManager * Updates * Delete NuGet.Config * Add command version
This commit is contained in:
parent
f695a215ad
commit
21c9c04f9f
15 changed files with 131 additions and 59 deletions
35
Ryujinx.HLE/HOS/Services/Fs/IMultiCommitManager.cs
Normal file
35
Ryujinx.HLE/HOS/Services/Fs/IMultiCommitManager.cs
Normal file
|
@ -0,0 +1,35 @@
|
|||
using LibHac;
|
||||
using Ryujinx.HLE.HOS.Services.Fs.FileSystemProxy;
|
||||
|
||||
namespace Ryujinx.HLE.HOS.Services.Fs
|
||||
{
|
||||
class IMultiCommitManager : IpcService // 6.0.0+
|
||||
{
|
||||
private LibHac.FsService.IMultiCommitManager _baseCommitManager;
|
||||
|
||||
public IMultiCommitManager(LibHac.FsService.IMultiCommitManager baseCommitManager)
|
||||
{
|
||||
_baseCommitManager = baseCommitManager;
|
||||
}
|
||||
|
||||
[Command(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;
|
||||
}
|
||||
|
||||
[Command(2)] // 6.0.0+
|
||||
// Commit()
|
||||
public ResultCode Commit(ServiceCtx context)
|
||||
{
|
||||
Result result = _baseCommitManager.Commit();
|
||||
|
||||
return (ResultCode)result.Value;
|
||||
}
|
||||
}
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue