diff options
author | Lioncash <mathew1800@gmail.com> | 2018-09-07 02:34:51 +0200 |
---|---|---|
committer | Lioncash <mathew1800@gmail.com> | 2018-09-07 02:52:58 +0200 |
commit | 3f17fe71334a27a60bf54adc55eabe2356ed31f5 (patch) | |
tree | 11fd2e48608908feb95c9024e3bd8e1267ec538a /src/core/hle/kernel/kernel.h | |
parent | Merge pull request #1250 from lioncash/file-sys (diff) | |
download | yuzu-3f17fe71334a27a60bf54adc55eabe2356ed31f5.tar yuzu-3f17fe71334a27a60bf54adc55eabe2356ed31f5.tar.gz yuzu-3f17fe71334a27a60bf54adc55eabe2356ed31f5.tar.bz2 yuzu-3f17fe71334a27a60bf54adc55eabe2356ed31f5.tar.lz yuzu-3f17fe71334a27a60bf54adc55eabe2356ed31f5.tar.xz yuzu-3f17fe71334a27a60bf54adc55eabe2356ed31f5.tar.zst yuzu-3f17fe71334a27a60bf54adc55eabe2356ed31f5.zip |
Diffstat (limited to 'src/core/hle/kernel/kernel.h')
-rw-r--r-- | src/core/hle/kernel/kernel.h | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/src/core/hle/kernel/kernel.h b/src/core/hle/kernel/kernel.h index ab2e9bffa..c0771ecf0 100644 --- a/src/core/hle/kernel/kernel.h +++ b/src/core/hle/kernel/kernel.h @@ -65,6 +65,15 @@ public: /// Adds the given shared pointer to an internal list of active processes. void AppendNewProcess(SharedPtr<Process> process); + /// Makes the given process the new current process. + void MakeCurrentProcess(SharedPtr<Process> process); + + /// Retrieves a reference to the current process. + SharedPtr<Process>& CurrentProcess(); + + /// Retrieves a const reference to the current process. + const SharedPtr<Process>& CurrentProcess() const; + /// Adds a port to the named port table void AddNamedPort(std::string name, SharedPtr<ClientPort> port); |