early-access version 3809
This commit is contained in:
parent
61480248a0
commit
6c10f553c9
3 changed files with 16 additions and 3 deletions
|
@ -1,7 +1,7 @@
|
||||||
yuzu emulator early access
|
yuzu emulator early access
|
||||||
=============
|
=============
|
||||||
|
|
||||||
This is the source code for early-access 3808.
|
This is the source code for early-access 3809.
|
||||||
|
|
||||||
## Legal Notice
|
## Legal Notice
|
||||||
|
|
||||||
|
|
|
@ -476,7 +476,13 @@ NetworkInstance::~NetworkInstance() {
|
||||||
std::optional<IPv4Address> GetHostIPv4Address() {
|
std::optional<IPv4Address> GetHostIPv4Address() {
|
||||||
const auto network_interface = Network::GetSelectedNetworkInterface();
|
const auto network_interface = Network::GetSelectedNetworkInterface();
|
||||||
if (!network_interface.has_value()) {
|
if (!network_interface.has_value()) {
|
||||||
LOG_DEBUG(Network, "GetSelectedNetworkInterface returned no interface");
|
// Only print the error once to avoid log spam
|
||||||
|
static bool print_error = true;
|
||||||
|
if (print_error) {
|
||||||
|
LOG_ERROR(Network, "GetSelectedNetworkInterface returned no interface");
|
||||||
|
print_error = false;
|
||||||
|
}
|
||||||
|
|
||||||
return {};
|
return {};
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -200,7 +200,14 @@ std::optional<NetworkInterface> GetSelectedNetworkInterface() {
|
||||||
});
|
});
|
||||||
|
|
||||||
if (res == network_interfaces.end()) {
|
if (res == network_interfaces.end()) {
|
||||||
LOG_DEBUG(Network, "Couldn't find selected interface \"{}\"", selected_network_interface);
|
// Only print the error once to avoid log spam
|
||||||
|
static bool print_error = true;
|
||||||
|
if (print_error) {
|
||||||
|
LOG_ERROR(Network, "Couldn't find selected interface \"{}\"",
|
||||||
|
selected_network_interface);
|
||||||
|
print_error = false;
|
||||||
|
}
|
||||||
|
|
||||||
return std::nullopt;
|
return std::nullopt;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue