Qt: Allow package installation through cli

Adds --installpkg cli option
This commit is contained in:
Megamouse 2021-03-21 17:18:25 +01:00
parent 2c05e9719d
commit 554ba9d6a6
7 changed files with 53 additions and 14 deletions

View file

@ -28,6 +28,11 @@ pkg_install_dialog::pkg_install_dialog(const QStringList& paths, game_compatibil
for (const QString& path : paths)
{
const compat::package_info info = game_compatibility::GetPkgInfo(path, compat);
if (!info.is_valid)
{
continue;
}
const QFileInfo file_info(path);
// We have to build our complicated localized string in some annoying manner