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