From f87bc7d72bd980b02f0051e0bfe735d06ee8f2ec Mon Sep 17 00:00:00 2001 From: TheTechnician27 Date: Fri, 14 Nov 2025 09:34:31 -0600 Subject: [PATCH] UI: Make 'Start fullscreen' option work for BPM and improve variable name Co-authored-by: Geraldi Kusuma Arnanto <981538+aldee@users.noreply.github.com> --- pcsx2-qt/QtHost.cpp | 15 ++++++++------- 1 file changed, 8 insertions(+), 7 deletions(-) diff --git a/pcsx2-qt/QtHost.cpp b/pcsx2-qt/QtHost.cpp index 4d4e0f26a6..2c564e856a 100644 --- a/pcsx2-qt/QtHost.cpp +++ b/pcsx2-qt/QtHost.cpp @@ -88,8 +88,8 @@ static QTimer* s_settings_save_timer = nullptr; static std::unique_ptr s_base_settings_interface; static bool s_batch_mode = false; static bool s_nogui_mode = false; -static bool s_start_fullscreen_ui = false; -static bool s_start_fullscreen_ui_fullscreen = false; +static bool s_start_big_picture_mode = false; +static bool s_start_fullscreen = false; static bool s_test_config_and_exit = false; static bool s_run_setup_wizard = false; static bool s_cleanup_after_update = false; @@ -2184,7 +2184,7 @@ bool QtHost::ParseCommandLineOptions(const QStringList& args, std::shared_ptrfullscreen = true; - s_start_fullscreen_ui_fullscreen = true; + s_start_fullscreen = true; continue; } else if (CHECK_ARG(QStringLiteral("-nofullscreen"))) @@ -2199,7 +2199,7 @@ bool QtHost::ParseCommandLineOptions(const QStringList& args, std::shared_ptrstartFullscreenUI(s_start_fullscreen_ui_fullscreen); + // As CLI arguments are baked-in, they're tracked separately from settings which can be changed during runtime. + if (s_start_big_picture_mode || Host::GetBaseBoolSettingValue("UI", "StartBigPictureMode", false)) + g_emu_thread->startFullscreenUI(s_start_fullscreen || Host::GetBaseBoolSettingValue("UI", "StartFullscreen", false)); if (s_boot_and_debug || DebuggerWindow::shouldShowOnStartup()) {