mirror of
https://git.suyu.dev/suyu/suyu.git
synced 2024-11-27 22:06:27 -05:00
1e98e73828
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.
36 lines
814 B
C++
36 lines
814 B
C++
// 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>
|
|
|
|
#include "core/network/network_interface.h"
|
|
|
|
namespace Ui {
|
|
class ConfigureNetwork;
|
|
}
|
|
|
|
class ConfigureNetwork : public QWidget {
|
|
Q_OBJECT
|
|
|
|
public:
|
|
explicit ConfigureNetwork(QWidget* parent = nullptr);
|
|
~ConfigureNetwork() 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::ConfigureNetwork> ui;
|
|
QFutureWatcher<std::pair<QString, QString>> watcher{this};
|
|
};
|