VERY experimental Nintendo Switch 2 emulator
C++
filesystem: Implement OpenReadOnlySaveDataFilesystem
Zach Hilman74f147216c0a
diff --git a/src/core/hle/service/filesystem/fsp_srv.cpp b/src/core/hle/service/filesystem/fsp_srv.cppindex 994845f942..3f8ff67e88 100644--- a/src/core/hle/service/filesystem/fsp_srv.cpp+++ b/src/core/hle/service/filesystem/fsp_srv.cpp@@ -455,7 +455,7 @@ FSP_SRV::FSP_SRV() : ServiceFramework("fsp-srv") {{34, nullptr, "GetCacheStorageSize"},{51, &FSP_SRV::MountSaveData, "MountSaveData"},{52, nullptr, "OpenSaveDataFileSystemBySystemSaveDataId"},- {53, nullptr, "OpenReadOnlySaveDataFileSystem"},+ {53, &FSP_SRV::OpenReadOnlySaveDataFileSystem, "OpenReadOnlySaveDataFileSystem"},{57, nullptr, "ReadSaveDataFileSystemExtraDataBySaveDataSpaceId"},{58, nullptr, "ReadSaveDataFileSystemExtraData"},{59, nullptr, "WriteSaveDataFileSystemExtraData"},@@ -584,6 +584,11 @@ void FSP_SRV::MountSaveData(Kernel::HLERequestContext& ctx) {rb.PushIpcInterface<IFileSystem>(std::move(filesystem));}+void FSP_SRV::OpenReadOnlySaveDataFileSystem(Kernel::HLERequestContext& ctx) {+ LOG_WARNING(Service_FS, "(STUBBED) called, delegating to 51 OpenSaveDataFilesystem");+ MountSaveData(ctx);+}+void FSP_SRV::GetGlobalAccessLogMode(Kernel::HLERequestContext& ctx) {LOG_WARNING(Service_FS, "(STUBBED) called");diff --git a/src/core/hle/service/filesystem/fsp_srv.h b/src/core/hle/service/filesystem/fsp_srv.hindex b5842ecddf..2b5c21abb0 100644--- a/src/core/hle/service/filesystem/fsp_srv.h+++ b/src/core/hle/service/filesystem/fsp_srv.h@@ -24,6 +24,7 @@ private:void MountSdCard(Kernel::HLERequestContext& ctx);void CreateSaveData(Kernel::HLERequestContext& ctx);void MountSaveData(Kernel::HLERequestContext& ctx);+ void OpenReadOnlySaveDataFileSystem(Kernel::HLERequestContext& ctx);void GetGlobalAccessLogMode(Kernel::HLERequestContext& ctx);void OpenDataStorageByCurrentProcess(Kernel::HLERequestContext& ctx);void OpenDataStorageByDataId(Kernel::HLERequestContext& ctx);