diff options
author | FearlessTobi <thm.frey@gmail.com> | 2022-08-27 03:41:19 +0200 |
---|---|---|
committer | FearlessTobi <thm.frey@gmail.com> | 2022-08-27 03:41:19 +0200 |
commit | 2b6ac4463c06cfdf50b1d150311a217d2ee11688 (patch) | |
tree | b3c6e200499949a98a42b05f96bcc01134ca2ef5 /src/yuzu/multiplayer/state.h | |
parent | 339758c9fce9a211f85f62182d8fa0e1115c229b (diff) |
yuzu/multiplayer: Warn when game is running or no network interface is selected
Diffstat (limited to 'src/yuzu/multiplayer/state.h')
-rw-r--r-- | src/yuzu/multiplayer/state.h | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/yuzu/multiplayer/state.h b/src/yuzu/multiplayer/state.h index 23960414e..3921f2fc3 100644 --- a/src/yuzu/multiplayer/state.h +++ b/src/yuzu/multiplayer/state.h @@ -4,6 +4,7 @@ #pragma once #include <QWidget> +#include "core/core.h" #include "network/announce_multiplayer_session.h" #include "network/network.h" @@ -19,7 +20,7 @@ class MultiplayerState : public QWidget { public: explicit MultiplayerState(QWidget* parent, QStandardItemModel* game_list, QAction* leave_room, - QAction* show_room, Network::RoomNetwork& room_network_); + QAction* show_room, Core::System& system_); ~MultiplayerState(); /** @@ -86,6 +87,7 @@ private: Network::RoomMember::CallbackHandle<Network::RoomMember::Error> error_callback_handle; bool show_notification = false; + Core::System& system; Network::RoomNetwork& room_network; }; |