Ryujinx/Ryujinx.HLE/FileSystem/IFileSystemProvider.cs

42 lines
1,009 B
C#
Raw Normal View History

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