mirror of
https://git.eden-emu.dev/eden-emu/eden.git
synced 2025-10-26 02:03:27 +00:00
yuzu/multiplayer: Warn when game is running or no network interface is selected
This commit is contained in:
parent
f3284250ce
commit
ce204d9ad0
11 changed files with 81 additions and 19 deletions
|
|
@ -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;
|
||||
};
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue