aboutsummaryrefslogtreecommitdiff
path: root/Ryujinx.Core/OsHle/Services/ServiceFspSrv.cs
diff options
context:
space:
mode:
Diffstat (limited to 'Ryujinx.Core/OsHle/Services/ServiceFspSrv.cs')
-rw-r--r--Ryujinx.Core/OsHle/Services/ServiceFspSrv.cs49
1 files changed, 49 insertions, 0 deletions
diff --git a/Ryujinx.Core/OsHle/Services/ServiceFspSrv.cs b/Ryujinx.Core/OsHle/Services/ServiceFspSrv.cs
new file mode 100644
index 00000000..3fe41cf0
--- /dev/null
+++ b/Ryujinx.Core/OsHle/Services/ServiceFspSrv.cs
@@ -0,0 +1,49 @@
+using Ryujinx.Core.OsHle.Objects.FspSrv;
+
+using static Ryujinx.Core.OsHle.Objects.ObjHelper;
+
+namespace Ryujinx.Core.OsHle.Services
+{
+ static partial class Service
+ {
+ public static long FspSrvInitialize(ServiceCtx Context)
+ {
+ return 0;
+ }
+
+ public static long FspSrvMountSdCard(ServiceCtx Context)
+ {
+ MakeObject(Context, new IFileSystem(Context.Ns.VFs.GetSdCardPath()));
+
+ return 0;
+ }
+
+ public static long FspSrvMountSaveData(ServiceCtx Context)
+ {
+ MakeObject(Context, new IFileSystem(Context.Ns.VFs.GetGameSavesPath()));
+
+ return 0;
+ }
+
+ public static long FspSrvOpenDataStorageByCurrentProcess(ServiceCtx Context)
+ {
+ MakeObject(Context, new IStorage(Context.Ns.VFs.RomFs));
+
+ return 0;
+ }
+
+ public static long FspSrvOpenRomStorage(ServiceCtx Context)
+ {
+ MakeObject(Context, new IStorage(Context.Ns.VFs.RomFs));
+
+ return 0;
+ }
+
+ public static long FspSrvGetGlobalAccessLogMode(ServiceCtx Context)
+ {
+ Context.ResponseData.Write(0);
+
+ return 0;
+ }
+ }
+} \ No newline at end of file