diff options
author | flow <flowlnlnln@gmail.com> | 2022-12-01 15:15:15 -0300 |
---|---|---|
committer | flow <flowlnlnln@gmail.com> | 2022-12-01 15:15:15 -0300 |
commit | a116778402bd98ee079488d8c5a27933369e9046 (patch) | |
tree | 8a1e7840e254f48cd1125c82be9ac7980f1eaa0e /launcher/MMCZip.h | |
parent | 9e1653ebb471d4d96efda85cbde128c59fe3686a (diff) | |
download | PrismLauncher-a116778402bd98ee079488d8c5a27933369e9046.tar.gz PrismLauncher-a116778402bd98ee079488d8c5a27933369e9046.tar.bz2 PrismLauncher-a116778402bd98ee079488d8c5a27933369e9046.zip |
fix(Inst.Import): don't search inside 'overrides/' for the manifest
It will never be there anyways, and saves a **bunch** of time when the
overrides folder is big and we traverse all the tree when searching for
the MMC 'instance.cfg' file.
Signed-off-by: flow <flowlnlnln@gmail.com>
Diffstat (limited to 'launcher/MMCZip.h')
-rw-r--r-- | launcher/MMCZip.h | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/launcher/MMCZip.h b/launcher/MMCZip.h index ce9775bd..81f9cb90 100644 --- a/launcher/MMCZip.h +++ b/launcher/MMCZip.h @@ -80,9 +80,11 @@ namespace MMCZip /** * Find a single file in archive by file name (not path) * + * \param ignore_paths paths to skip when recursing the search + * * \return the path prefix where the file is */ - QString findFolderOfFileInZip(QuaZip * zip, const QString & what, const QString &root = QString("")); + QString findFolderOfFileInZip(QuaZip * zip, const QString & what, const QStringList& ignore_paths = {}, const QString &root = QString("")); /** * Find a multiple files of the same name in archive by file name |