From cb4d2e0698659978b94b01befac04d977ea32587 Mon Sep 17 00:00:00 2001 From: Joshi234 <46032261+Joshi234@users.noreply.github.com> Date: Tue, 19 Jan 2021 15:46:19 +0100 Subject: [PATCH] Implemented OpenDataStorageWithProgramIndex --- Ryujinx.HLE/HOS/Services/Fs/IFileSystemProxy.cs | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/Ryujinx.HLE/HOS/Services/Fs/IFileSystemProxy.cs b/Ryujinx.HLE/HOS/Services/Fs/IFileSystemProxy.cs index e29a040f1..c22bd335b 100644 --- a/Ryujinx.HLE/HOS/Services/Fs/IFileSystemProxy.cs +++ b/Ryujinx.HLE/HOS/Services/Fs/IFileSystemProxy.cs @@ -465,6 +465,15 @@ namespace Ryujinx.HLE.HOS.Services.Fs return ResultCode.Success; } + [Command(205)] + // OpenDataStorageWithProgramIndex(u8 storageId) -> object + public ResultCode OpenDataStorageWithProgramIndex(ServiceCtx context) + { + byte unknown = context.RequestData.ReadByte(); + MakeObject(context, new FileSystemProxy.IStorage(context.Device.FileSystem.RomFs.AsStorage())); + return ResultCode.Success; + } + [Command(400)] // OpenDataStorageByCurrentProcess() -> object dataStorage public ResultCode OpenDeviceOperator(ServiceCtx context)