diff options
| -rw-r--r-- | src/core/network/network.cpp | 2 | ||||
| -rw-r--r-- | src/yuzu/main.cpp | 9 |
2 files changed, 7 insertions, 4 deletions
diff --git a/src/core/network/network.cpp b/src/core/network/network.cpp index 72eea52f0..a3e0664b9 100644 --- a/src/core/network/network.cpp +++ b/src/core/network/network.cpp | |||
| @@ -366,8 +366,6 @@ std::optional<IPv4Address> GetHostIPv4Address() { | |||
| 366 | if (res != network_interfaces.end()) { | 366 | if (res != network_interfaces.end()) { |
| 367 | char ip_addr[16] = {}; | 367 | char ip_addr[16] = {}; |
| 368 | ASSERT(inet_ntop(AF_INET, &res->ip_address, ip_addr, sizeof(ip_addr)) != nullptr); | 368 | ASSERT(inet_ntop(AF_INET, &res->ip_address, ip_addr, sizeof(ip_addr)) != nullptr); |
| 369 | LOG_INFO(Network, "IP address: {}", ip_addr); | ||
| 370 | |||
| 371 | return TranslateIPv4(res->ip_address); | 369 | return TranslateIPv4(res->ip_address); |
| 372 | } else { | 370 | } else { |
| 373 | LOG_ERROR(Network, "Couldn't find selected interface \"{}\"", selected_network_interface); | 371 | LOG_ERROR(Network, "Couldn't find selected interface \"{}\"", selected_network_interface); |
diff --git a/src/yuzu/main.cpp b/src/yuzu/main.cpp index 0bd0c5b04..552c2cc63 100644 --- a/src/yuzu/main.cpp +++ b/src/yuzu/main.cpp | |||
| @@ -2920,8 +2920,13 @@ void GMainWindow::UpdateWindowTitle(std::string_view title_name, std::string_vie | |||
| 2920 | if (title_name.empty()) { | 2920 | if (title_name.empty()) { |
| 2921 | setWindowTitle(QString::fromStdString(window_title)); | 2921 | setWindowTitle(QString::fromStdString(window_title)); |
| 2922 | } else { | 2922 | } else { |
| 2923 | const auto run_title = | 2923 | const auto run_title = [window_title, title_name, title_version, gpu_vendor]() { |
| 2924 | fmt::format("{} | {} | {} | {}", window_title, title_name, title_version, gpu_vendor); | 2924 | if (title_version.empty()) { |
| 2925 | return fmt::format("{} | {} | {}", window_title, title_name, gpu_vendor); | ||
| 2926 | } | ||
| 2927 | return fmt::format("{} | {} | {} | {}", window_title, title_name, title_version, | ||
| 2928 | gpu_vendor); | ||
| 2929 | }(); | ||
| 2925 | setWindowTitle(QString::fromStdString(run_title)); | 2930 | setWindowTitle(QString::fromStdString(run_title)); |
| 2926 | } | 2931 | } |
| 2927 | } | 2932 | } |