diff options
author | bunnei <bunneidev@gmail.com> | 2020-09-03 05:07:03 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-09-03 05:07:03 +0200 |
commit | 38980b2471c27ef4b417c776337cd489e410ad31 (patch) | |
tree | 9fea0f34f872b590b4f82381b1c872ccd536df05 /src/core/hle/service | |
parent | Merge pull request #4564 from lioncash/file-include (diff) | |
parent | fsp_srv: Resolve -Wunused-but-set-variable warning (diff) | |
download | yuzu-38980b2471c27ef4b417c776337cd489e410ad31.tar yuzu-38980b2471c27ef4b417c776337cd489e410ad31.tar.gz yuzu-38980b2471c27ef4b417c776337cd489e410ad31.tar.bz2 yuzu-38980b2471c27ef4b417c776337cd489e410ad31.tar.lz yuzu-38980b2471c27ef4b417c776337cd489e410ad31.tar.xz yuzu-38980b2471c27ef4b417c776337cd489e410ad31.tar.zst yuzu-38980b2471c27ef4b417c776337cd489e410ad31.zip |
Diffstat (limited to 'src/core/hle/service')
-rw-r--r-- | src/core/hle/service/filesystem/fsp_srv.cpp | 16 |
1 files changed, 13 insertions, 3 deletions
diff --git a/src/core/hle/service/filesystem/fsp_srv.cpp b/src/core/hle/service/filesystem/fsp_srv.cpp index 26fd87f58..649128be4 100644 --- a/src/core/hle/service/filesystem/fsp_srv.cpp +++ b/src/core/hle/service/filesystem/fsp_srv.cpp @@ -844,8 +844,7 @@ void FSP_SRV::OpenSaveDataFileSystem(Kernel::HLERequestContext& ctx) { return; } - FileSys::StorageId id; - + FileSys::StorageId id{}; switch (parameters.space_id) { case FileSys::SaveDataSpaceId::NandUser: id = FileSys::StorageId::NandUser; @@ -857,6 +856,10 @@ void FSP_SRV::OpenSaveDataFileSystem(Kernel::HLERequestContext& ctx) { case FileSys::SaveDataSpaceId::NandSystem: id = FileSys::StorageId::NandSystem; break; + case FileSys::SaveDataSpaceId::TemporaryStorage: + case FileSys::SaveDataSpaceId::ProperSystem: + case FileSys::SaveDataSpaceId::SafeMode: + UNREACHABLE(); } auto filesystem = @@ -902,7 +905,14 @@ void FSP_SRV::ReadSaveDataFileSystemExtraDataWithMaskBySaveDataAttribute( // Stub this to None for now, backend needs an impl to read/write the SaveDataExtraData constexpr auto flags = static_cast<u32>(FileSys::SaveDataFlags::None); - LOG_WARNING(Service_FS, "(STUBBED) called, flags={}", flags); + LOG_WARNING(Service_FS, + "(STUBBED) called, flags={}, space_id={}, attribute.title_id={:016X}\n" + "attribute.user_id={:016X}{:016X}, attribute.save_id={:016X}\n" + "attribute.type={}, attribute.rank={}, attribute.index={}", + flags, static_cast<u32>(parameters.space_id), parameters.attribute.title_id, + parameters.attribute.user_id[1], parameters.attribute.user_id[0], + parameters.attribute.save_id, static_cast<u32>(parameters.attribute.type), + static_cast<u32>(parameters.attribute.rank), parameters.attribute.index); IPC::ResponseBuilder rb{ctx, 3}; rb.Push(RESULT_SUCCESS); |