aboutsummaryrefslogtreecommitdiff
path: root/src/Ryujinx.Horizon/Sdk/Fs/IFsClient.cs
blob: caf6b03e905d1aa0d092331f479130533e480cb6 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
using Ryujinx.Horizon.Common;
using System;

namespace Ryujinx.Horizon.Sdk.Fs
{
    public interface IFsClient
    {
        Result QueryMountSystemDataCacheSize(out long size, ulong dataId);
        Result MountSystemData(string mountName, ulong dataId);
        Result OpenFile(out FileHandle handle, string path, OpenMode openMode);
        Result ReadFile(FileHandle handle, long offset, Span<byte> destination);
        Result GetFileSize(out long size, FileHandle handle);
        void CloseFile(FileHandle handle);
        void Unmount(string mountName);
    }
}