ServiceFspSrv.cs 1.2 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849
  1. using Ryujinx.Core.OsHle.Objects.FspSrv;
  2. using static Ryujinx.Core.OsHle.Objects.ObjHelper;
  3. namespace Ryujinx.Core.OsHle.Services
  4. {
  5. static partial class Service
  6. {
  7. public static long FspSrvInitialize(ServiceCtx Context)
  8. {
  9. return 0;
  10. }
  11. public static long FspSrvMountSdCard(ServiceCtx Context)
  12. {
  13. MakeObject(Context, new IFileSystem(Context.Ns.VFs.GetSdCardPath()));
  14. return 0;
  15. }
  16. public static long FspSrvMountSaveData(ServiceCtx Context)
  17. {
  18. MakeObject(Context, new IFileSystem(Context.Ns.VFs.GetGameSavesPath()));
  19. return 0;
  20. }
  21. public static long FspSrvOpenDataStorageByCurrentProcess(ServiceCtx Context)
  22. {
  23. MakeObject(Context, new IStorage(Context.Ns.VFs.RomFs));
  24. return 0;
  25. }
  26. public static long FspSrvOpenRomStorage(ServiceCtx Context)
  27. {
  28. MakeObject(Context, new IStorage(Context.Ns.VFs.RomFs));
  29. return 0;
  30. }
  31. public static long FspSrvGetGlobalAccessLogMode(ServiceCtx Context)
  32. {
  33. Context.ResponseData.Write(0);
  34. return 0;
  35. }
  36. }
  37. }