mirror of
https://github.com/ryujinx-mirror/ryujinx.git
synced 2025-09-18 00:57:54 -05:00
Ipc refactor (#9)
* Start refactoring IPC objects (started with IFile and IFileSystem) * End refactoring IPC objects (#8) * End refactoring IPC objects * End refactoring IPC objects corrections
This commit is contained in:
@@ -1,4 +1,4 @@
|
||||
using Ryujinx.OsHle.Objects;
|
||||
using Ryujinx.OsHle.Objects.FspSrv;
|
||||
|
||||
using static Ryujinx.OsHle.Objects.ObjHelper;
|
||||
|
||||
@@ -13,28 +13,28 @@ namespace Ryujinx.OsHle.Services
|
||||
|
||||
public static long FspSrvMountSdCard(ServiceCtx Context)
|
||||
{
|
||||
MakeObject(Context, new FspSrvIFileSystem(Context.Ns.VFs.GetSdCardPath()));
|
||||
MakeObject(Context, new IFileSystem(Context.Ns.VFs.GetSdCardPath()));
|
||||
|
||||
return 0;
|
||||
}
|
||||
|
||||
public static long FspSrvMountSaveData(ServiceCtx Context)
|
||||
{
|
||||
MakeObject(Context, new FspSrvIFileSystem(Context.Ns.VFs.GetGameSavesPath()));
|
||||
MakeObject(Context, new IFileSystem(Context.Ns.VFs.GetGameSavesPath()));
|
||||
|
||||
return 0;
|
||||
}
|
||||
|
||||
public static long FspSrvOpenDataStorageByCurrentProcess(ServiceCtx Context)
|
||||
{
|
||||
MakeObject(Context, new FspSrvIStorage(Context.Ns.VFs.RomFs));
|
||||
MakeObject(Context, new IStorage(Context.Ns.VFs.RomFs));
|
||||
|
||||
return 0;
|
||||
}
|
||||
|
||||
public static long FspSrvOpenRomStorage(ServiceCtx Context)
|
||||
{
|
||||
MakeObject(Context, new FspSrvIStorage(Context.Ns.VFs.RomFs));
|
||||
MakeObject(Context, new IStorage(Context.Ns.VFs.RomFs));
|
||||
|
||||
return 0;
|
||||
}
|
||||
|
Reference in New Issue
Block a user