diff --git a/rpcs3/rpcs3qt/main_window.cpp b/rpcs3/rpcs3qt/main_window.cpp index 1f7eceba0a..734bdf04e4 100644 --- a/rpcs3/rpcs3qt/main_window.cpp +++ b/rpcs3/rpcs3qt/main_window.cpp @@ -95,6 +95,10 @@ #include "raw_mouse_settings_dialog.h" #endif +#if defined(__linux__) || defined(__APPLE__) || (defined(_WIN32) && defined(ARCH_X64)) +#define RPCS3_UPDATE_SUPPORTED +#endif + LOG_CHANNEL(gui_log, "GUI"); extern atomic_t g_user_asked_for_frame_capture; @@ -335,7 +339,7 @@ bool main_window::Init([[maybe_unused]] bool with_cli_boot) } }); -#if (!defined(ARCH_ARM64) || defined(__APPLE__)) && (defined(_WIN32) || defined(__linux__) || defined(__APPLE__)) +#ifdef RPCS3_UPDATE_SUPPORTED if (const auto update_value = m_gui_settings->GetValue(gui::m_check_upd_start).toString(); update_value != gui::update_off) { const bool in_background = with_cli_boot || update_value == gui::update_bkg; @@ -3359,11 +3363,11 @@ void main_window::CreateConnects() connect(ui->updateAct, &QAction::triggered, this, [this]() { -#if (!defined(_WIN32) && !defined(__linux__) && !defined(__APPLE__)) || (defined(ARCH_ARM64) && !defined(__APPLE__)) - QMessageBox::warning(this, tr("Auto-updater"), tr("The auto-updater isn't available for your OS currently.")); - return; -#endif +#ifdef RPCS3_UPDATE_SUPPORTED m_updater.check_for_updates(false, false, false, this); +#else + QMessageBox::warning(this, tr("Auto-updater"), tr("The auto-updater isn't available for your OS currently.")); +#endif }); connect(ui->welcomeAct, &QAction::triggered, this, [this]()