diff options
| author | 2020-09-02 23:07:03 -0400 | |
|---|---|---|
| committer | 2020-09-02 23:07:03 -0400 | |
| commit | 38980b2471c27ef4b417c776337cd489e410ad31 (patch) | |
| tree | 9fea0f34f872b590b4f82381b1c872ccd536df05 | |
| parent | Merge pull request #4564 from lioncash/file-include (diff) | |
| parent | fsp_srv: Resolve -Wunused-but-set-variable warning (diff) | |
| download | yuzu-38980b2471c27ef4b417c776337cd489e410ad31.tar.gz yuzu-38980b2471c27ef4b417c776337cd489e410ad31.tar.xz yuzu-38980b2471c27ef4b417c776337cd489e410ad31.zip | |
Merge pull request #4568 from lioncash/fsp
fsp_srv: Resolve -Wmaybe_uninitialized warning in OpenSaveDataFileSystem()
| -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) { | |||
| 844 | return; | 844 | return; |
| 845 | } | 845 | } |
| 846 | 846 | ||
| 847 | FileSys::StorageId id; | 847 | FileSys::StorageId id{}; |
| 848 | |||
| 849 | switch (parameters.space_id) { | 848 | switch (parameters.space_id) { |
| 850 | case FileSys::SaveDataSpaceId::NandUser: | 849 | case FileSys::SaveDataSpaceId::NandUser: |
| 851 | id = FileSys::StorageId::NandUser; | 850 | id = FileSys::StorageId::NandUser; |
| @@ -857,6 +856,10 @@ void FSP_SRV::OpenSaveDataFileSystem(Kernel::HLERequestContext& ctx) { | |||
| 857 | case FileSys::SaveDataSpaceId::NandSystem: | 856 | case FileSys::SaveDataSpaceId::NandSystem: |
| 858 | id = FileSys::StorageId::NandSystem; | 857 | id = FileSys::StorageId::NandSystem; |
| 859 | break; | 858 | break; |
| 859 | case FileSys::SaveDataSpaceId::TemporaryStorage: | ||
| 860 | case FileSys::SaveDataSpaceId::ProperSystem: | ||
| 861 | case FileSys::SaveDataSpaceId::SafeMode: | ||
| 862 | UNREACHABLE(); | ||
| 860 | } | 863 | } |
| 861 | 864 | ||
| 862 | auto filesystem = | 865 | auto filesystem = |
| @@ -902,7 +905,14 @@ void FSP_SRV::ReadSaveDataFileSystemExtraDataWithMaskBySaveDataAttribute( | |||
| 902 | // Stub this to None for now, backend needs an impl to read/write the SaveDataExtraData | 905 | // Stub this to None for now, backend needs an impl to read/write the SaveDataExtraData |
| 903 | constexpr auto flags = static_cast<u32>(FileSys::SaveDataFlags::None); | 906 | constexpr auto flags = static_cast<u32>(FileSys::SaveDataFlags::None); |
| 904 | 907 | ||
| 905 | LOG_WARNING(Service_FS, "(STUBBED) called, flags={}", flags); | 908 | LOG_WARNING(Service_FS, |
| 909 | "(STUBBED) called, flags={}, space_id={}, attribute.title_id={:016X}\n" | ||
| 910 | "attribute.user_id={:016X}{:016X}, attribute.save_id={:016X}\n" | ||
| 911 | "attribute.type={}, attribute.rank={}, attribute.index={}", | ||
| 912 | flags, static_cast<u32>(parameters.space_id), parameters.attribute.title_id, | ||
| 913 | parameters.attribute.user_id[1], parameters.attribute.user_id[0], | ||
| 914 | parameters.attribute.save_id, static_cast<u32>(parameters.attribute.type), | ||
| 915 | static_cast<u32>(parameters.attribute.rank), parameters.attribute.index); | ||
| 906 | 916 | ||
| 907 | IPC::ResponseBuilder rb{ctx, 3}; | 917 | IPC::ResponseBuilder rb{ctx, 3}; |
| 908 | rb.Push(RESULT_SUCCESS); | 918 | rb.Push(RESULT_SUCCESS); |