From 91dbd92193ab14ab2de2e53224dfb76b8ac90b7b Mon Sep 17 00:00:00 2001 From: Darkhost1999 <60384196+Darkhost1999@users.noreply.github.com> Date: Wed, 22 Nov 2023 21:58:18 -0600 Subject: [PATCH] Change PPU/SPU Cache Enable minimizing the LLVM batch creation window and keep modal permissions --- rpcs3/rpcs3qt/game_list_frame.cpp | 15 ++++++++------- rpcs3/rpcs3qt/main_window.ui | 2 +- 2 files changed, 9 insertions(+), 8 deletions(-) diff --git a/rpcs3/rpcs3qt/game_list_frame.cpp b/rpcs3/rpcs3qt/game_list_frame.cpp index e8f3e68ff1..6dd6c05514 100644 --- a/rpcs3/rpcs3qt/game_list_frame.cpp +++ b/rpcs3/rpcs3qt/game_list_frame.cpp @@ -1101,7 +1101,7 @@ void game_list_frame::ShowContextMenu(const QPoint &pos) ? tr("&Change Custom Gamepad Configuration") : tr("&Create Custom Gamepad Configuration")); QAction* configure_patches = menu.addAction(tr("&Manage Game Patches")); - QAction* create_ppu_cache = menu.addAction(tr("&Create PPU/SPU Cache")); + QAction* create_cpu_cache = menu.addAction(tr("&Create LLVM Cache")); menu.addSeparator(); @@ -1436,7 +1436,7 @@ void game_list_frame::ShowContextMenu(const QPoint &pos) m_gui_settings->SetValue(gui::gl_hidden_list, QStringList(m_hidden_list.values())); Refresh(); }); - connect(create_ppu_cache, &QAction::triggered, this, [gameinfo, this] + connect(create_cpu_cache, &QAction::triggered, this, [gameinfo, this] { if (m_gui_settings->GetBootConfirmation(this)) { @@ -1619,11 +1619,11 @@ bool game_list_frame::CreateCPUCaches(const std::string& path, const std::string if (const auto error = Emu.BootGame(fs::is_file(path) ? fs::get_parent_dir(path) : path, serial, true); error != game_boot_result::no_errors) { - game_list_log.error("Could not create PPU and SPU caches for %s, error: %s", path, error); + game_list_log.error("Could not create LLVM caches for %s, error: %s", path, error); return false; } - game_list_log.warning("Creating PPU/SPU Caches for %s", path); + game_list_log.warning("Creating LLVM Caches for %s", path); return true; } @@ -1916,7 +1916,7 @@ void game_list_frame::BatchCreateCPUCaches() if (total == 0) { - QMessageBox::information(this, tr("PPU Cache Batch Creation"), tr("No titles found"), QMessageBox::Ok); + QMessageBox::information(this, tr("LLVM Cache Batch Creation"), tr("No titles found"), QMessageBox::Ok); return; } @@ -1925,9 +1925,10 @@ void game_list_frame::BatchCreateCPUCaches() return; } - const QString main_label = tr("Creating all PPU caches"); + const QString main_label = tr("Creating all LLVM caches"); - progress_dialog* pdlg = new progress_dialog(tr("PPU Cache Batch Creation"), main_label, tr("Cancel"), 0, total, true, this); + progress_dialog* pdlg = new progress_dialog(tr("LLVM Cache Batch Creation"), main_label, tr("Cancel"), 0, total, true, this); + pdlg->setWindowFlags(Qt::Window | Qt::WindowMinimizeButtonHint); pdlg->setAutoClose(false); pdlg->setAutoReset(false); pdlg->show(); diff --git a/rpcs3/rpcs3qt/main_window.ui b/rpcs3/rpcs3qt/main_window.ui index 094444e50f..5a7c6b766d 100644 --- a/rpcs3/rpcs3qt/main_window.ui +++ b/rpcs3/rpcs3qt/main_window.ui @@ -1106,7 +1106,7 @@ - Create PPU/SPU Caches + Create LLVM Caches