diff options
author | spholz <44805808+spholz@users.noreply.github.com> | 2021-08-12 21:32:53 +0200 |
---|---|---|
committer | spholz <44805808+spholz@users.noreply.github.com> | 2021-08-12 21:32:53 +0200 |
commit | 1e98e738283ccb81303d29305188ac825ecfcba9 (patch) | |
tree | 3e82e0ce341efd5aad25584d381235365260dd1a /src/yuzu/configuration/configure_service.h | |
parent | 33ebe471e8769f6c1da300297b780e4269554ca5 (diff) |
configuration: add option to select network interface
This commit renames the "Services" tab to "Network" and adds a combobox that allows the user to select the network interface that yuzu should use. This new setting is now used to get the local IP address in Network::GetHostIPv4Address. This prevents yuzu from selecting the wrong network interface and thus using the wrong IP address. The return type of Network::GetHostIPv4Adress has also been changed.
Diffstat (limited to 'src/yuzu/configuration/configure_service.h')
-rw-r--r-- | src/yuzu/configuration/configure_service.h | 34 |
1 files changed, 0 insertions, 34 deletions
diff --git a/src/yuzu/configuration/configure_service.h b/src/yuzu/configuration/configure_service.h deleted file mode 100644 index f5c1b703a..000000000 --- a/src/yuzu/configuration/configure_service.h +++ /dev/null @@ -1,34 +0,0 @@ -// Copyright 2019 yuzu Emulator Project -// Licensed under GPLv2 or any later version -// Refer to the license.txt file included. - -#pragma once - -#include <memory> -#include <QFutureWatcher> -#include <QWidget> - -namespace Ui { -class ConfigureService; -} - -class ConfigureService : public QWidget { - Q_OBJECT - -public: - explicit ConfigureService(QWidget* parent = nullptr); - ~ConfigureService() override; - - void ApplyConfiguration(); - void RetranslateUi(); - -private: - void SetConfiguration(); - - std::pair<QString, QString> BCATDownloadEvents(); - void OnBCATImplChanged(); - void OnUpdateBCATEmptyLabel(std::pair<QString, QString> string); - - std::unique_ptr<Ui::ConfigureService> ui; - QFutureWatcher<std::pair<QString, QString>> watcher{this}; -}; |