2018-11-18 19:37:41 +00:00
|
|
|
|
using Ryujinx.HLE.HOS;
|
|
|
|
|
using Ryujinx.HLE.HOS.Services.FspSrv;
|
|
|
|
|
|
|
|
|
|
namespace Ryujinx.HLE.FileSystem
|
|
|
|
|
{
|
|
|
|
|
interface IFileSystemProvider
|
|
|
|
|
{
|
2018-12-04 20:23:37 +00:00
|
|
|
|
long CreateFile(string name, long size);
|
2018-11-18 19:37:41 +00:00
|
|
|
|
|
2018-12-04 20:23:37 +00:00
|
|
|
|
long CreateDirectory(string name);
|
2018-11-18 19:37:41 +00:00
|
|
|
|
|
2018-12-04 20:23:37 +00:00
|
|
|
|
long RenameFile(string oldName, string newName);
|
2018-11-18 19:37:41 +00:00
|
|
|
|
|
2018-12-04 20:23:37 +00:00
|
|
|
|
long RenameDirectory(string oldName, string newName);
|
2018-11-18 19:37:41 +00:00
|
|
|
|
|
2018-12-04 20:23:37 +00:00
|
|
|
|
DirectoryEntry[] GetEntries(string path);
|
2018-11-18 19:37:41 +00:00
|
|
|
|
|
2018-12-04 20:23:37 +00:00
|
|
|
|
DirectoryEntry[] GetDirectories(string path);
|
2018-11-18 19:37:41 +00:00
|
|
|
|
|
2018-12-04 20:23:37 +00:00
|
|
|
|
DirectoryEntry[] GetFiles(string path);
|
2018-11-18 19:37:41 +00:00
|
|
|
|
|
2018-12-04 20:23:37 +00:00
|
|
|
|
long DeleteFile(string name);
|
2018-11-18 19:37:41 +00:00
|
|
|
|
|
2018-12-04 20:23:37 +00:00
|
|
|
|
long DeleteDirectory(string name, bool recursive);
|
2018-11-18 19:37:41 +00:00
|
|
|
|
|
2018-12-04 20:23:37 +00:00
|
|
|
|
bool FileExists(string name);
|
2018-11-18 19:37:41 +00:00
|
|
|
|
|
2018-12-04 20:23:37 +00:00
|
|
|
|
bool DirectoryExists(string name);
|
2018-11-18 19:37:41 +00:00
|
|
|
|
|
2018-12-04 20:23:37 +00:00
|
|
|
|
long OpenFile(string name, out IFile fileInterface);
|
2018-11-18 19:37:41 +00:00
|
|
|
|
|
2018-12-04 20:23:37 +00:00
|
|
|
|
long OpenDirectory(string name, int filterFlags, out IDirectory directoryInterface);
|
2018-11-18 19:37:41 +00:00
|
|
|
|
|
2018-12-04 20:23:37 +00:00
|
|
|
|
string GetFullPath(string name);
|
2018-11-18 19:37:41 +00:00
|
|
|
|
|
2018-12-04 20:23:37 +00:00
|
|
|
|
long GetFreeSpace(ServiceCtx context);
|
2018-11-18 19:37:41 +00:00
|
|
|
|
|
2018-12-04 20:23:37 +00:00
|
|
|
|
long GetTotalSpace(ServiceCtx context);
|
2018-11-18 19:37:41 +00:00
|
|
|
|
}
|
|
|
|
|
}
|