From 6eddb60db0173acccb69f6b24c2f64fa0526a7c4 Mon Sep 17 00:00:00 2001 From: Lioncash Date: Tue, 12 Mar 2019 19:03:26 -0400 Subject: kernel/process: Remove use of global system accessors Now that we pass in a reference to the system instance, we can utilize it to eliminate the global accessors in Process-related code. --- src/core/hle/kernel/process.h | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'src/core/hle/kernel/process.h') diff --git a/src/core/hle/kernel/process.h b/src/core/hle/kernel/process.h index 2a132c894..47ffd4ad3 100644 --- a/src/core/hle/kernel/process.h +++ b/src/core/hle/kernel/process.h @@ -266,7 +266,7 @@ public: void FreeTLSSlot(VAddr tls_address); private: - explicit Process(Core::System& kernel); + explicit Process(Core::System& system); ~Process() override; /// Checks if the specified thread should wait until this process is available. @@ -330,6 +330,10 @@ private: /// Random values for svcGetInfo RandomEntropy std::array random_entropy; + /// System context + Core::System& system; + + /// Name of this process std::string name; }; -- cgit v1.2.3