mirror of
https://github.com/RPCSX/rpcsx.git
synced 2026-04-05 14:37:08 +00: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