mirror of
https://github.com/RPCS3/rpcs3.git
synced 2025-07-09 16:31:28 +12:00
Qt/Loader: Let users choose which packages to install
This commit is contained in:
parent
c3b7229fbb
commit
66e1cf96e2
6 changed files with 111 additions and 44 deletions
|
@ -348,5 +348,18 @@ EmuCallbacks main_application::CreateCallbacks()
|
|||
return font_dirs;
|
||||
};
|
||||
|
||||
callbacks.on_install_pkgs = [](const std::vector<std::string>& pkgs)
|
||||
{
|
||||
for (const std::string& pkg : pkgs)
|
||||
{
|
||||
if (!rpcs3::utils::install_pkg(pkg))
|
||||
{
|
||||
sys_log.error("Failed to install %s", pkg);
|
||||
return false;
|
||||
}
|
||||
}
|
||||
return true;
|
||||
};
|
||||
|
||||
return callbacks;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue