2018-11-18 20:37:41 +01:00
|
|
|
|
using Ryujinx.HLE.HOS;
|
|
|
|
|
using Ryujinx.HLE.HOS.Services.FspSrv;
|
2018-12-05 01:52:39 +01:00
|
|
|
|
using System;
|
2018-11-18 20:37:41 +01:00
|
|
|
|
|
|
|
|
|
namespace Ryujinx.HLE.FileSystem
|
|
|
|
|
{
|
|
|
|
|
interface IFileSystemProvider
|
|
|
|
|
{
|
2018-12-05 01:52:39 +01:00
|
|
|
|
long CreateFile(string Name, long Size);
|
2018-11-18 20:37:41 +01:00
|
|
|
|
|
2018-12-05 01:52:39 +01:00
|
|
|
|
long CreateDirectory(string Name);
|
2018-11-18 20:37:41 +01:00
|
|
|
|
|
2018-12-05 01:52:39 +01:00
|
|
|
|
long RenameFile(string OldName, string NewName);
|
2018-11-18 20:37:41 +01:00
|
|
|
|
|
2018-12-05 01:52:39 +01:00
|
|
|
|
long RenameDirectory(string OldName, string NewName);
|
2018-11-18 20:37:41 +01:00
|
|
|
|
|
2018-12-05 01:52:39 +01:00
|
|
|
|
DirectoryEntry[] GetEntries(string Path);
|
2018-11-18 20:37:41 +01:00
|
|
|
|
|
2018-12-05 01:52:39 +01:00
|
|
|
|
DirectoryEntry[] GetDirectories(string Path);
|
2018-11-18 20:37:41 +01:00
|
|
|
|
|
2018-12-05 01:52:39 +01:00
|
|
|
|
DirectoryEntry[] GetFiles(string Path);
|
2018-11-18 20:37:41 +01:00
|
|
|
|
|
2018-12-05 01:52:39 +01:00
|
|
|
|
long DeleteFile(string Name);
|
2018-11-18 20:37:41 +01:00
|
|
|
|
|
2018-12-05 01:52:39 +01:00
|
|
|
|
long DeleteDirectory(string Name, bool Recursive);
|
2018-11-18 20:37:41 +01:00
|
|
|
|
|
2018-12-05 01:52:39 +01:00
|
|
|
|
bool FileExists(string Name);
|
2018-11-18 20:37:41 +01:00
|
|
|
|
|
2018-12-05 01:52:39 +01:00
|
|
|
|
bool DirectoryExists(string Name);
|
2018-11-18 20:37:41 +01:00
|
|
|
|
|
2018-12-05 01:52:39 +01:00
|
|
|
|
long OpenFile(string Name, out IFile FileInterface);
|
2018-11-18 20:37:41 +01:00
|
|
|
|
|
2018-12-05 01:52:39 +01:00
|
|
|
|
long OpenDirectory(string Name, int FilterFlags, out IDirectory DirectoryInterface);
|
2018-11-18 20:37:41 +01:00
|
|
|
|
|
2018-12-05 01:52:39 +01:00
|
|
|
|
string GetFullPath(string Name);
|
2018-11-18 20:37:41 +01:00
|
|
|
|
|
2018-12-05 01:52:39 +01:00
|
|
|
|
long GetFreeSpace(ServiceCtx Context);
|
2018-11-18 20:37:41 +01:00
|
|
|
|
|
2018-12-05 01:52:39 +01:00
|
|
|
|
long GetTotalSpace(ServiceCtx Context);
|
2018-11-18 20:37:41 +01:00
|
|
|
|
}
|
|
|
|
|
}
|