Skip to content

Commit

Permalink
Refresh game list after installing RAP files via menus
Browse files Browse the repository at this point in the history
  • Loading branch information
NicknineTheEagle committed Aug 7, 2021
1 parent 7431332 commit 73fbcdc
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions rpcs3/rpcs3qt/main_window.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -622,6 +622,8 @@ void main_window::InstallPackages(QStringList file_paths)
}

// Install rap files if available
int installed_rap_count = 0;

for (const auto& rap : file_paths.filter(QRegExp(".*\\.rap", Qt::CaseInsensitive)))
{
const QFileInfo file_info(rap);
Expand All @@ -630,13 +632,20 @@ void main_window::InstallPackages(QStringList file_paths)
if (InstallRapFile(rap, rapname))
{
gui_log.success("Successfully copied rap file: %s", rapname);
installed_rap_count++;
}
else
{
gui_log.error("Could not copy rap file: %s", rapname);
}
}

if (installed_rap_count > 0)
{
// Refresh game list since we probably unlocked some games now.
m_game_list_frame->Refresh(true);
}

// Find remaining package files
file_paths = file_paths.filter(QRegExp(".*\\.pkg", Qt::CaseInsensitive));

Expand Down

0 comments on commit 73fbcdc

Please sign in to comment.