summaryrefslogtreecommitdiffstats
path: root/src/core
diff options
context:
space:
mode:
authorLioncash <mathew1800@gmail.com>2019-03-18 15:37:41 +0100
committerLioncash <mathew1800@gmail.com>2019-03-18 15:38:01 +0100
commit9f092554c273972e6d2a5e8a8893ef59e9f8812d (patch)
tree69874c50b939c45de6342b2178961fa5e5a1d946 /src/core
parentMerge pull request #2238 from lioncash/thread (diff)
downloadyuzu-9f092554c273972e6d2a5e8a8893ef59e9f8812d.tar
yuzu-9f092554c273972e6d2a5e8a8893ef59e9f8812d.tar.gz
yuzu-9f092554c273972e6d2a5e8a8893ef59e9f8812d.tar.bz2
yuzu-9f092554c273972e6d2a5e8a8893ef59e9f8812d.tar.lz
yuzu-9f092554c273972e6d2a5e8a8893ef59e9f8812d.tar.xz
yuzu-9f092554c273972e6d2a5e8a8893ef59e9f8812d.tar.zst
yuzu-9f092554c273972e6d2a5e8a8893ef59e9f8812d.zip
Diffstat (limited to '')
-rw-r--r--src/core/hle/service/filesystem/fsp_srv.cpp5
-rw-r--r--src/core/hle/service/filesystem/fsp_srv.h1
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