diff options
author | FearlessTobi <[email protected]> | 2022-07-22 16:31:13 +0200 |
---|---|---|
committer | FearlessTobi <[email protected]> | 2022-07-25 21:59:31 +0200 |
commit | 7d82e57b91dee30e0fe6fed36550ea7cc9eb778e (patch) | |
tree | 4a58f4874083783026dabc0de6a7fb09195cf95b /src/core/core.h | |
parent | 899c8bb33094f43fbd8df9afb4ca84718ebac87e (diff) | |
download | yuzu-mainline-7d82e57b91dee30e0fe6fed36550ea7cc9eb778e.tar.gz yuzu-mainline-7d82e57b91dee30e0fe6fed36550ea7cc9eb778e.zip |
network: Move global state into a seperate class
Co-Authored-By: Narr the Reg <[email protected]>
Diffstat (limited to 'src/core/core.h')
-rw-r--r-- | src/core/core.h | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/src/core/core.h b/src/core/core.h index a49d1214b..13122dd61 100644 --- a/src/core/core.h +++ b/src/core/core.h @@ -97,6 +97,10 @@ namespace Core::HID { class HIDCore; } +namespace Network { +class RoomNetwork; +} + namespace Core { class ARM_Interface; @@ -379,6 +383,12 @@ public: [[nodiscard]] Core::Debugger& GetDebugger(); [[nodiscard]] const Core::Debugger& GetDebugger() const; + /// Gets a mutable reference to the Room Network. + [[nodiscard]] Network::RoomNetwork& GetRoomNetwork(); + + /// Gets an immutable reference to the Room Network. + [[nodiscard]] const Network::RoomNetwork& GetRoomNetwork() const; + void SetExitLock(bool locked); [[nodiscard]] bool GetExitLock() const; |