diff options
author | bunnei <bunneidev@gmail.com> | 2019-03-18 16:13:52 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2019-03-18 16:13:52 +0100 |
commit | 8dc2f01eaeb06276a8d5279e86f5665f66802ad6 (patch) | |
tree | 8d64197f2efab7424023954e43af57de8fb7bf1f | |
parent | Merge pull request #2254 from lioncash/redundant (diff) | |
parent | fsp_srv: Unstub SetCurrentProcess (diff) | |
download | yuzu-8dc2f01eaeb06276a8d5279e86f5665f66802ad6.tar yuzu-8dc2f01eaeb06276a8d5279e86f5665f66802ad6.tar.gz yuzu-8dc2f01eaeb06276a8d5279e86f5665f66802ad6.tar.bz2 yuzu-8dc2f01eaeb06276a8d5279e86f5665f66802ad6.tar.lz yuzu-8dc2f01eaeb06276a8d5279e86f5665f66802ad6.tar.xz yuzu-8dc2f01eaeb06276a8d5279e86f5665f66802ad6.tar.zst yuzu-8dc2f01eaeb06276a8d5279e86f5665f66802ad6.zip |
-rw-r--r-- | src/core/hle/service/filesystem/fsp_srv.cpp | 5 | ||||
-rw-r--r-- | src/core/hle/service/filesystem/fsp_srv.h | 1 |
2 files changed, 5 insertions, 1 deletions
diff --git a/src/core/hle/service/filesystem/fsp_srv.cpp b/src/core/hle/service/filesystem/fsp_srv.cpp index 54959edd8..f03fb629c 100644 --- a/src/core/hle/service/filesystem/fsp_srv.cpp +++ b/src/core/hle/service/filesystem/fsp_srv.cpp @@ -733,7 +733,10 @@ FSP_SRV::FSP_SRV() : ServiceFramework("fsp-srv") { FSP_SRV::~FSP_SRV() = default; void FSP_SRV::SetCurrentProcess(Kernel::HLERequestContext& ctx) { - LOG_WARNING(Service_FS, "(STUBBED) called"); + IPC::RequestParser rp{ctx}; + current_process_id = rp.Pop<u64>(); + + LOG_DEBUG(Service_FS, "called. current_process_id=0x{:016X}", current_process_id); IPC::ResponseBuilder rb{ctx, 2}; rb.Push(RESULT_SUCCESS); diff --git a/src/core/hle/service/filesystem/fsp_srv.h b/src/core/hle/service/filesystem/fsp_srv.h index 3a5f4e200..d7572ba7a 100644 --- a/src/core/hle/service/filesystem/fsp_srv.h +++ b/src/core/hle/service/filesystem/fsp_srv.h @@ -32,6 +32,7 @@ private: void OpenPatchDataStorageByCurrentProcess(Kernel::HLERequestContext& ctx); FileSys::VirtualFile romfs; + u64 current_process_id = 0; }; } // namespace Service::FileSystem |