From b81e77cffae257a6b1b37b2c27a1e7dc244d646d Mon Sep 17 00:00:00 2001 From: Eladash Date: Fri, 21 Apr 2023 11:05:52 +0300 Subject: [PATCH] Remove add_only from main_window::Boot args --- rpcs3/rpcs3qt/main_window.cpp | 12 +++++------- rpcs3/rpcs3qt/main_window.h | 2 +- 2 files changed, 6 insertions(+), 8 deletions(-) diff --git a/rpcs3/rpcs3qt/main_window.cpp b/rpcs3/rpcs3qt/main_window.cpp index f5075cc900..f998f1158d 100644 --- a/rpcs3/rpcs3qt/main_window.cpp +++ b/rpcs3/rpcs3qt/main_window.cpp @@ -481,7 +481,7 @@ void main_window::show_boot_error(game_boot_result status) msg.exec(); } -void main_window::Boot(const std::string& path, const std::string& title_id, bool direct, bool add_only, cfg_mode config_mode, const std::string& config_path) +void main_window::Boot(const std::string& path, const std::string& title_id, bool direct, cfg_mode config_mode, const std::string& config_path) { if (!m_gui_settings->GetBootConfirmation(this, gui::ib_confirm_boot)) { @@ -492,7 +492,7 @@ void main_window::Boot(const std::string& path, const std::string& title_id, boo m_app_icon = gui::utils::get_app_icon_from_path(path, title_id); - if (const auto error = Emu.BootGame(path, title_id, direct, add_only, config_mode, config_path); error != game_boot_result::no_errors) + if (const auto error = Emu.BootGame(path, title_id, direct, false, config_mode, config_path); error != game_boot_result::no_errors) { gui_log.error("Boot failed: reason: %s, path: %s", error, path); show_boot_error(error); @@ -500,10 +500,8 @@ void main_window::Boot(const std::string& path, const std::string& title_id, boo else { gui_log.success("Boot successful."); - if (!add_only) - { - AddRecentAction(gui::Recent_Game(qstr(Emu.GetBoot()), qstr(Emu.GetTitleAndTitleID()))); - } + + AddRecentAction(gui::Recent_Game(qstr(Emu.GetBoot()), qstr(Emu.GetTitleAndTitleID()))); } m_game_list_frame->Refresh(true); @@ -2912,7 +2910,7 @@ void main_window::CreateDockWindows() connect(m_game_list_frame, &game_list_frame::RequestBoot, this, [this](const game_info& game, cfg_mode config_mode, const std::string& config_path, const std::string& savestate) { - Boot(savestate.empty() ? game->info.path : savestate, game->info.serial, false, false, config_mode, config_path); + Boot(savestate.empty() ? game->info.path : savestate, game->info.serial, false, config_mode, config_path); }); connect(m_game_list_frame, &game_list_frame::NotifyEmuSettingsChange, this, &main_window::NotifyEmuSettingsChange); diff --git a/rpcs3/rpcs3qt/main_window.h b/rpcs3/rpcs3qt/main_window.h index 7f2e3a8535..9dc598204e 100644 --- a/rpcs3/rpcs3qt/main_window.h +++ b/rpcs3/rpcs3qt/main_window.h @@ -109,7 +109,7 @@ public Q_SLOTS: private Q_SLOTS: void OnPlayOrPause(); - void Boot(const std::string& path, const std::string& title_id = "", bool direct = false, bool add_only = false, cfg_mode config_mode = cfg_mode::custom, const std::string& config_path = ""); + void Boot(const std::string& path, const std::string& title_id = "", bool direct = false, cfg_mode config_mode = cfg_mode::custom, const std::string& config_path = ""); void BootElf(); void BootTest(); void BootGame();