summaryrefslogtreecommitdiffstats
path: root/src/core/hle
diff options
context:
space:
mode:
authorLioncash <mathew1800@gmail.com>2019-04-05 03:24:20 +0200
committerLioncash <mathew1800@gmail.com>2019-04-05 17:04:01 +0200
commitd0ed3ff4b7c10a2b7e85185f62f5734d2d8329dc (patch)
treed4192b6d63686d214152075e5fbaff0ea8d0b177 /src/core/hle
parentservice/fsp_srv: Update SaveDataInfo and SaveDataDescriptor structs (diff)
downloadyuzu-d0ed3ff4b7c10a2b7e85185f62f5734d2d8329dc.tar
yuzu-d0ed3ff4b7c10a2b7e85185f62f5734d2d8329dc.tar.gz
yuzu-d0ed3ff4b7c10a2b7e85185f62f5734d2d8329dc.tar.bz2
yuzu-d0ed3ff4b7c10a2b7e85185f62f5734d2d8329dc.tar.lz
yuzu-d0ed3ff4b7c10a2b7e85185f62f5734d2d8329dc.tar.xz
yuzu-d0ed3ff4b7c10a2b7e85185f62f5734d2d8329dc.tar.zst
yuzu-d0ed3ff4b7c10a2b7e85185f62f5734d2d8329dc.zip
Diffstat (limited to 'src/core/hle')
-rw-r--r--src/core/hle/service/filesystem/fsp_srv.cpp15
1 files changed, 8 insertions, 7 deletions
diff --git a/src/core/hle/service/filesystem/fsp_srv.cpp b/src/core/hle/service/filesystem/fsp_srv.cpp
index 06547e063..e2bb692c5 100644
--- a/src/core/hle/service/filesystem/fsp_srv.cpp
+++ b/src/core/hle/service/filesystem/fsp_srv.cpp
@@ -781,16 +781,17 @@ void FSP_SRV::CreateSaveDataFileSystem(Kernel::HLERequestContext& ctx) {
}
void FSP_SRV::OpenSaveDataFileSystem(Kernel::HLERequestContext& ctx) {
- IPC::RequestParser rp{ctx};
-
- auto space_id = rp.PopRaw<FileSys::SaveDataSpaceId>();
- auto unk = rp.Pop<u32>();
- LOG_INFO(Service_FS, "called with unknown={:08X}", unk);
+ LOG_INFO(Service_FS, "called.");
- auto save_struct = rp.PopRaw<FileSys::SaveDataDescriptor>();
+ struct Parameters {
+ FileSys::SaveDataSpaceId save_data_space_id;
+ FileSys::SaveDataDescriptor descriptor;
+ };
- auto dir = OpenSaveData(space_id, save_struct);
+ IPC::RequestParser rp{ctx};
+ const auto parameters = rp.PopRaw<Parameters>();
+ auto dir = OpenSaveData(parameters.save_data_space_id, parameters.descriptor);
if (dir.Failed()) {
IPC::ResponseBuilder rb{ctx, 2, 0, 0};
rb.Push(FileSys::ERROR_ENTITY_NOT_FOUND);