IFileSystemProvider.cs 1009 B

1234567891011121314151617181920212223242526272829303132333435363738394041
  1. using Ryujinx.HLE.HOS;
  2. using Ryujinx.HLE.HOS.Services.FspSrv;
  3. using System;
  4. namespace Ryujinx.HLE.FileSystem
  5. {
  6. interface IFileSystemProvider
  7. {
  8. long CreateFile(string Name, long Size);
  9. long CreateDirectory(string Name);
  10. long RenameFile(string OldName, string NewName);
  11. long RenameDirectory(string OldName, string NewName);
  12. DirectoryEntry[] GetEntries(string Path);
  13. DirectoryEntry[] GetDirectories(string Path);
  14. DirectoryEntry[] GetFiles(string Path);
  15. long DeleteFile(string Name);
  16. long DeleteDirectory(string Name, bool Recursive);
  17. bool FileExists(string Name);
  18. bool DirectoryExists(string Name);
  19. long OpenFile(string Name, out IFile FileInterface);
  20. long OpenDirectory(string Name, int FilterFlags, out IDirectory DirectoryInterface);
  21. string GetFullPath(string Name);
  22. long GetFreeSpace(ServiceCtx Context);
  23. long GetTotalSpace(ServiceCtx Context);
  24. }
  25. }