mirror of
https://github.com/Ryujinx/Ryujinx.git
synced 2024-09-10 13:43:17 +02:00
![emmauss](/assets/img/avatar_default.png)
* Implement contentmanager and related services * small changes * read system firmware version from nand * add pfs support, write directoryentry info for romfs files * add file check in fsp-srv:8 * add support for open fs of internal files * fix filename when accessing pfs * use switch style paths for contentpath * close nca after verifying type * removed publishing profiles, align directory entry * fix style * lots of style fixes * yasf(yet another style fix) * yasf(yet another style fix) plus symbols * enforce path check on every fs access * change enum type to default * fix typo
42 lines
1009 B
C#
42 lines
1009 B
C#
using Ryujinx.HLE.HOS;
|
|
using Ryujinx.HLE.HOS.Services.FspSrv;
|
|
using System;
|
|
|
|
namespace Ryujinx.HLE.FileSystem
|
|
{
|
|
interface IFileSystemProvider
|
|
{
|
|
long CreateFile(string Name, long Size);
|
|
|
|
long CreateDirectory(string Name);
|
|
|
|
long RenameFile(string OldName, string NewName);
|
|
|
|
long RenameDirectory(string OldName, string NewName);
|
|
|
|
DirectoryEntry[] GetEntries(string Path);
|
|
|
|
DirectoryEntry[] GetDirectories(string Path);
|
|
|
|
DirectoryEntry[] GetFiles(string Path);
|
|
|
|
long DeleteFile(string Name);
|
|
|
|
long DeleteDirectory(string Name, bool Recursive);
|
|
|
|
bool FileExists(string Name);
|
|
|
|
bool DirectoryExists(string Name);
|
|
|
|
long OpenFile(string Name, out IFile FileInterface);
|
|
|
|
long OpenDirectory(string Name, int FilterFlags, out IDirectory DirectoryInterface);
|
|
|
|
string GetFullPath(string Name);
|
|
|
|
long GetFreeSpace(ServiceCtx Context);
|
|
|
|
long GetTotalSpace(ServiceCtx Context);
|
|
}
|
|
}
|