mirror of
https://git.eden-emu.dev/eden-emu/eden.git
synced 2025-07-20 08:15:46 +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
|
@ -6,6 +6,7 @@
|
|||
#include <memory>
|
||||
#include <QDialog>
|
||||
#include <QFutureWatcher>
|
||||
#include "core/core.h"
|
||||
#include "yuzu/multiplayer/validation.h"
|
||||
|
||||
namespace Ui {
|
||||
|
@ -16,7 +17,7 @@ class DirectConnectWindow : public QDialog {
|
|||
Q_OBJECT
|
||||
|
||||
public:
|
||||
explicit DirectConnectWindow(Network::RoomNetwork& room_network_, QWidget* parent = nullptr);
|
||||
explicit DirectConnectWindow(Core::System& system_, QWidget* parent = nullptr);
|
||||
~DirectConnectWindow();
|
||||
|
||||
void RetranslateUi();
|
||||
|
@ -39,5 +40,6 @@ private:
|
|||
QFutureWatcher<void>* watcher;
|
||||
std::unique_ptr<Ui::DirectConnect> ui;
|
||||
Validation validation;
|
||||
Core::System& system;
|
||||
Network::RoomNetwork& room_network;
|
||||
};
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue