diff options
| author | 2023-05-11 17:10:45 -0400 | |
|---|---|---|
| committer | 2023-05-11 17:23:28 -0400 | |
| commit | 13e4ceb9909fc15310c2e5d08ca008c06c8cbb70 (patch) | |
| tree | 6a0fb07fdbffc2260b593f2b290ff9bdcc97a43b /src/core/hle/service/filesystem | |
| parent | Merge pull request #10132 from Kelebek1/fermi_blit2 (diff) | |
| download | yuzu-13e4ceb9909fc15310c2e5d08ca008c06c8cbb70.tar.gz yuzu-13e4ceb9909fc15310c2e5d08ca008c06c8cbb70.tar.xz yuzu-13e4ceb9909fc15310c2e5d08ca008c06c8cbb70.zip | |
fs: stub cache storage and fix params alignment
Diffstat (limited to 'src/core/hle/service/filesystem')
| -rw-r--r-- | src/core/hle/service/filesystem/fsp_srv.cpp | 21 | ||||
| -rw-r--r-- | src/core/hle/service/filesystem/fsp_srv.h | 1 |
2 files changed, 17 insertions, 5 deletions
diff --git a/src/core/hle/service/filesystem/fsp_srv.cpp b/src/core/hle/service/filesystem/fsp_srv.cpp index 9e559d97e..3a142f5d0 100644 --- a/src/core/hle/service/filesystem/fsp_srv.cpp +++ b/src/core/hle/service/filesystem/fsp_srv.cpp | |||
| @@ -24,8 +24,10 @@ | |||
| 24 | #include "core/file_sys/savedata_factory.h" | 24 | #include "core/file_sys/savedata_factory.h" |
| 25 | #include "core/file_sys/system_archive/system_archive.h" | 25 | #include "core/file_sys/system_archive/system_archive.h" |
| 26 | #include "core/file_sys/vfs.h" | 26 | #include "core/file_sys/vfs.h" |
| 27 | #include "core/hle/result.h" | ||
| 27 | #include "core/hle/service/filesystem/filesystem.h" | 28 | #include "core/hle/service/filesystem/filesystem.h" |
| 28 | #include "core/hle/service/filesystem/fsp_srv.h" | 29 | #include "core/hle/service/filesystem/fsp_srv.h" |
| 30 | #include "core/hle/service/hle_ipc.h" | ||
| 29 | #include "core/hle/service/ipc_helpers.h" | 31 | #include "core/hle/service/ipc_helpers.h" |
| 30 | #include "core/reporter.h" | 32 | #include "core/reporter.h" |
| 31 | 33 | ||
| @@ -308,8 +310,8 @@ private: | |||
| 308 | class IFileSystem final : public ServiceFramework<IFileSystem> { | 310 | class IFileSystem final : public ServiceFramework<IFileSystem> { |
| 309 | public: | 311 | public: |
| 310 | explicit IFileSystem(Core::System& system_, FileSys::VirtualDir backend_, SizeGetter size_) | 312 | explicit IFileSystem(Core::System& system_, FileSys::VirtualDir backend_, SizeGetter size_) |
| 311 | : ServiceFramework{system_, "IFileSystem"}, backend{std::move(backend_)}, size{std::move( | 313 | : ServiceFramework{system_, "IFileSystem"}, backend{std::move(backend_)}, |
| 312 | size_)} { | 314 | size{std::move(size_)} { |
| 313 | static const FunctionInfo functions[] = { | 315 | static const FunctionInfo functions[] = { |
| 314 | {0, &IFileSystem::CreateFile, "CreateFile"}, | 316 | {0, &IFileSystem::CreateFile, "CreateFile"}, |
| 315 | {1, &IFileSystem::DeleteFile, "DeleteFile"}, | 317 | {1, &IFileSystem::DeleteFile, "DeleteFile"}, |
| @@ -552,9 +554,9 @@ public: | |||
| 552 | // Write the data to memory | 554 | // Write the data to memory |
| 553 | ctx.WriteBuffer(begin, range_size); | 555 | ctx.WriteBuffer(begin, range_size); |
| 554 | 556 | ||
| 555 | IPC::ResponseBuilder rb{ctx, 3}; | 557 | IPC::ResponseBuilder rb{ctx, 4}; |
| 556 | rb.Push(ResultSuccess); | 558 | rb.Push(ResultSuccess); |
| 557 | rb.Push<u32>(static_cast<u32>(actual_entries)); | 559 | rb.Push<u64>(actual_entries); |
| 558 | } | 560 | } |
| 559 | 561 | ||
| 560 | private: | 562 | private: |
| @@ -712,7 +714,7 @@ FSP_SRV::FSP_SRV(Core::System& system_) | |||
| 712 | {59, nullptr, "WriteSaveDataFileSystemExtraData"}, | 714 | {59, nullptr, "WriteSaveDataFileSystemExtraData"}, |
| 713 | {60, nullptr, "OpenSaveDataInfoReader"}, | 715 | {60, nullptr, "OpenSaveDataInfoReader"}, |
| 714 | {61, &FSP_SRV::OpenSaveDataInfoReaderBySaveDataSpaceId, "OpenSaveDataInfoReaderBySaveDataSpaceId"}, | 716 | {61, &FSP_SRV::OpenSaveDataInfoReaderBySaveDataSpaceId, "OpenSaveDataInfoReaderBySaveDataSpaceId"}, |
| 715 | {62, nullptr, "OpenCacheStorageList"}, | 717 | {62, &FSP_SRV::OpenSaveDataInfoReaderOnlyCacheStorage, "OpenSaveDataInfoReaderOnlyCacheStorage"}, |
| 716 | {64, nullptr, "OpenSaveDataInternalStorageFileSystem"}, | 718 | {64, nullptr, "OpenSaveDataInternalStorageFileSystem"}, |
| 717 | {65, nullptr, "UpdateSaveDataMacForDebug"}, | 719 | {65, nullptr, "UpdateSaveDataMacForDebug"}, |
| 718 | {66, nullptr, "WriteSaveDataFileSystemExtraData2"}, | 720 | {66, nullptr, "WriteSaveDataFileSystemExtraData2"}, |
| @@ -921,6 +923,15 @@ void FSP_SRV::OpenSaveDataInfoReaderBySaveDataSpaceId(HLERequestContext& ctx) { | |||
| 921 | std::make_shared<ISaveDataInfoReader>(system, space, fsc)); | 923 | std::make_shared<ISaveDataInfoReader>(system, space, fsc)); |
| 922 | } | 924 | } |
| 923 | 925 | ||
| 926 | void FSP_SRV::OpenSaveDataInfoReaderOnlyCacheStorage(HLERequestContext& ctx) { | ||
| 927 | LOG_WARNING(Service_FS, "(STUBBED) called"); | ||
| 928 | |||
| 929 | IPC::ResponseBuilder rb{ctx, 2, 0, 1}; | ||
| 930 | rb.Push(ResultSuccess); | ||
| 931 | rb.PushIpcInterface<ISaveDataInfoReader>(system, FileSys::SaveDataSpaceId::TemporaryStorage, | ||
| 932 | fsc); | ||
| 933 | } | ||
| 934 | |||
| 924 | void FSP_SRV::WriteSaveDataFileSystemExtraDataBySaveDataAttribute(HLERequestContext& ctx) { | 935 | void FSP_SRV::WriteSaveDataFileSystemExtraDataBySaveDataAttribute(HLERequestContext& ctx) { |
| 925 | LOG_WARNING(Service_FS, "(STUBBED) called."); | 936 | LOG_WARNING(Service_FS, "(STUBBED) called."); |
| 926 | 937 | ||
diff --git a/src/core/hle/service/filesystem/fsp_srv.h b/src/core/hle/service/filesystem/fsp_srv.h index 49f17c7c3..4f3c2f6de 100644 --- a/src/core/hle/service/filesystem/fsp_srv.h +++ b/src/core/hle/service/filesystem/fsp_srv.h | |||
| @@ -42,6 +42,7 @@ private: | |||
| 42 | void OpenSaveDataFileSystem(HLERequestContext& ctx); | 42 | void OpenSaveDataFileSystem(HLERequestContext& ctx); |
| 43 | void OpenReadOnlySaveDataFileSystem(HLERequestContext& ctx); | 43 | void OpenReadOnlySaveDataFileSystem(HLERequestContext& ctx); |
| 44 | void OpenSaveDataInfoReaderBySaveDataSpaceId(HLERequestContext& ctx); | 44 | void OpenSaveDataInfoReaderBySaveDataSpaceId(HLERequestContext& ctx); |
| 45 | void OpenSaveDataInfoReaderOnlyCacheStorage(HLERequestContext& ctx); | ||
| 45 | void WriteSaveDataFileSystemExtraDataBySaveDataAttribute(HLERequestContext& ctx); | 46 | void WriteSaveDataFileSystemExtraDataBySaveDataAttribute(HLERequestContext& ctx); |
| 46 | void ReadSaveDataFileSystemExtraDataWithMaskBySaveDataAttribute(HLERequestContext& ctx); | 47 | void ReadSaveDataFileSystemExtraDataWithMaskBySaveDataAttribute(HLERequestContext& ctx); |
| 47 | void OpenDataStorageByCurrentProcess(HLERequestContext& ctx); | 48 | void OpenDataStorageByCurrentProcess(HLERequestContext& ctx); |