diff options
author | Lioncash <mathew1800@gmail.com> | 2021-05-29 08:49:07 +0200 |
---|---|---|
committer | Lioncash <mathew1800@gmail.com> | 2021-05-29 08:58:32 +0200 |
commit | 7b2917b4e1f257a5bca3892be13bb6dcb1ed9820 (patch) | |
tree | d92bec1006154a64e5ca2b7bc9d46b4cf61ced95 /src/core/hle/kernel/k_session.h | |
parent | Merge pull request #6375 from lioncash/iofs (diff) | |
download | yuzu-7b2917b4e1f257a5bca3892be13bb6dcb1ed9820.tar yuzu-7b2917b4e1f257a5bca3892be13bb6dcb1ed9820.tar.gz yuzu-7b2917b4e1f257a5bca3892be13bb6dcb1ed9820.tar.bz2 yuzu-7b2917b4e1f257a5bca3892be13bb6dcb1ed9820.tar.lz yuzu-7b2917b4e1f257a5bca3892be13bb6dcb1ed9820.tar.xz yuzu-7b2917b4e1f257a5bca3892be13bb6dcb1ed9820.tar.zst yuzu-7b2917b4e1f257a5bca3892be13bb6dcb1ed9820.zip |
Diffstat (limited to 'src/core/hle/kernel/k_session.h')
-rw-r--r-- | src/core/hle/kernel/k_session.h | 10 |
1 files changed, 4 insertions, 6 deletions
diff --git a/src/core/hle/kernel/k_session.h b/src/core/hle/kernel/k_session.h index a981fd1f6..4ddd080d2 100644 --- a/src/core/hle/kernel/k_session.h +++ b/src/core/hle/kernel/k_session.h @@ -18,17 +18,17 @@ class KSession final : public KAutoObjectWithSlabHeapAndContainer<KSession, KAut public: explicit KSession(KernelCore& kernel_); - virtual ~KSession() override; + ~KSession() override; void Initialize(KClientPort* port_, const std::string& name_); - virtual void Finalize() override; + void Finalize() override; - virtual bool IsInitialized() const override { + bool IsInitialized() const override { return initialized; } - virtual uintptr_t GetPostDestroyArgument() const override { + uintptr_t GetPostDestroyArgument() const override { return reinterpret_cast<uintptr_t>(process); } @@ -78,7 +78,6 @@ private: ServerClosed = 3, }; -private: void SetState(State state) { atomic_state = static_cast<u8>(state); } @@ -87,7 +86,6 @@ private: return static_cast<State>(atomic_state.load(std::memory_order_relaxed)); } -private: KServerSession server; KClientSession client; std::atomic<std::underlying_type_t<State>> atomic_state{ |