2018-02-10 01:14:55 +01:00
|
|
|
using Ryujinx.OsHle.Objects.FspSrv;
|
2018-02-05 00:08:20 +01:00
|
|
|
|
|
|
|
using static Ryujinx.OsHle.Objects.ObjHelper;
|
|
|
|
|
|
|
|
namespace Ryujinx.OsHle.Services
|
|
|
|
{
|
|
|
|
static partial class Service
|
|
|
|
{
|
|
|
|
public static long FspSrvInitialize(ServiceCtx Context)
|
|
|
|
{
|
|
|
|
return 0;
|
|
|
|
}
|
|
|
|
|
2018-02-07 00:28:32 +01:00
|
|
|
public static long FspSrvMountSdCard(ServiceCtx Context)
|
|
|
|
{
|
2018-02-10 01:14:55 +01:00
|
|
|
MakeObject(Context, new IFileSystem(Context.Ns.VFs.GetSdCardPath()));
|
2018-02-07 00:28:32 +01:00
|
|
|
|
|
|
|
return 0;
|
|
|
|
}
|
|
|
|
|
2018-02-05 00:08:20 +01:00
|
|
|
public static long FspSrvMountSaveData(ServiceCtx Context)
|
|
|
|
{
|
2018-02-10 01:14:55 +01:00
|
|
|
MakeObject(Context, new IFileSystem(Context.Ns.VFs.GetGameSavesPath()));
|
2018-02-05 00:08:20 +01:00
|
|
|
|
|
|
|
return 0;
|
|
|
|
}
|
|
|
|
|
|
|
|
public static long FspSrvOpenDataStorageByCurrentProcess(ServiceCtx Context)
|
|
|
|
{
|
2018-02-10 01:14:55 +01:00
|
|
|
MakeObject(Context, new IStorage(Context.Ns.VFs.RomFs));
|
2018-02-05 00:08:20 +01:00
|
|
|
|
|
|
|
return 0;
|
|
|
|
}
|
|
|
|
|
|
|
|
public static long FspSrvOpenRomStorage(ServiceCtx Context)
|
|
|
|
{
|
2018-02-10 01:14:55 +01:00
|
|
|
MakeObject(Context, new IStorage(Context.Ns.VFs.RomFs));
|
2018-02-05 00:08:20 +01:00
|
|
|
|
|
|
|
return 0;
|
|
|
|
}
|
|
|
|
|
|
|
|
public static long FspSrvGetGlobalAccessLogMode(ServiceCtx Context)
|
|
|
|
{
|
|
|
|
Context.ResponseData.Write(0);
|
|
|
|
|
|
|
|
return 0;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|