diff options
author | FearlessTobi <thm.frey@gmail.com> | 2022-07-22 16:31:13 +0200 |
---|---|---|
committer | FearlessTobi <thm.frey@gmail.com> | 2022-07-25 21:59:31 +0200 |
commit | 7d82e57b91dee30e0fe6fed36550ea7cc9eb778e (patch) | |
tree | 4a58f4874083783026dabc0de6a7fb09195cf95b /src/core/announce_multiplayer_session.h | |
parent | common: multiplayer: Use GameInfo type (diff) | |
download | yuzu-7d82e57b91dee30e0fe6fed36550ea7cc9eb778e.tar yuzu-7d82e57b91dee30e0fe6fed36550ea7cc9eb778e.tar.gz yuzu-7d82e57b91dee30e0fe6fed36550ea7cc9eb778e.tar.bz2 yuzu-7d82e57b91dee30e0fe6fed36550ea7cc9eb778e.tar.lz yuzu-7d82e57b91dee30e0fe6fed36550ea7cc9eb778e.tar.xz yuzu-7d82e57b91dee30e0fe6fed36550ea7cc9eb778e.tar.zst yuzu-7d82e57b91dee30e0fe6fed36550ea7cc9eb778e.zip |
Diffstat (limited to 'src/core/announce_multiplayer_session.h')
-rw-r--r-- | src/core/announce_multiplayer_session.h | 11 |
1 files changed, 7 insertions, 4 deletions
diff --git a/src/core/announce_multiplayer_session.h b/src/core/announce_multiplayer_session.h index 2aaf55017..5da3c1f8d 100644 --- a/src/core/announce_multiplayer_session.h +++ b/src/core/announce_multiplayer_session.h @@ -16,7 +16,8 @@ namespace Network { class Room; -} +class RoomNetwork; +} // namespace Network namespace Core { @@ -28,7 +29,7 @@ namespace Core { class AnnounceMultiplayerSession { public: using CallbackHandle = std::shared_ptr<std::function<void(const WebService::WebResult&)>>; - AnnounceMultiplayerSession(); + AnnounceMultiplayerSession(Network::RoomNetwork& room_network_); ~AnnounceMultiplayerSession(); /** @@ -79,6 +80,9 @@ public: void UpdateCredentials(); private: + void UpdateBackendData(std::shared_ptr<Network::Room> room); + void AnnounceMultiplayerLoop(); + Common::Event shutdown_event; std::mutex callback_mutex; std::set<CallbackHandle> error_callbacks; @@ -89,8 +93,7 @@ private: std::atomic_bool registered = false; ///< Whether the room has been registered - void UpdateBackendData(std::shared_ptr<Network::Room> room); - void AnnounceMultiplayerLoop(); + Network::RoomNetwork& room_network; }; } // namespace Core |