diff options
author | Rachel Powers <508861+Ryex@users.noreply.github.com> | 2023-02-08 18:52:50 -0700 |
---|---|---|
committer | Rachel Powers <508861+Ryex@users.noreply.github.com> | 2023-03-20 14:56:32 -0700 |
commit | c9105e525e175ee8181ab0a6998d0e21526f116d (patch) | |
tree | e4a8045b117cd6e97181971098ce4fc577cc667f /launcher/ui/dialogs | |
parent | 1bed7754e0bf3c009a38818963fe8d0832b36852 (diff) | |
download | PrismLauncher-c9105e525e175ee8181ab0a6998d0e21526f116d.tar.gz PrismLauncher-c9105e525e175ee8181ab0a6998d0e21526f116d.tar.bz2 PrismLauncher-c9105e525e175ee8181ab0a6998d0e21526f116d.zip |
fix: follow symlinks when exporting
Signed-off-by: Rachel Powers <508861+Ryex@users.noreply.github.com>
Diffstat (limited to 'launcher/ui/dialogs')
-rw-r--r-- | launcher/ui/dialogs/ExportInstanceDialog.cpp | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/launcher/ui/dialogs/ExportInstanceDialog.cpp b/launcher/ui/dialogs/ExportInstanceDialog.cpp index f13e36e8..07ec3c70 100644 --- a/launcher/ui/dialogs/ExportInstanceDialog.cpp +++ b/launcher/ui/dialogs/ExportInstanceDialog.cpp @@ -45,6 +45,8 @@ #include <QDebug> #include <QSaveFile> #include <QStack> +#include <QFileInfo> + #include "StringUtils.h" #include "SeparatorPrefixTree.h" #include "Application.h" @@ -429,7 +431,8 @@ bool ExportInstanceDialog::doExport() QMessageBox::warning(this, tr("Error"), tr("Unable to export instance")); return false; } - if (!MMCZip::compressDirFiles(output, m_instance->instanceRoot(), files)) + + if (!MMCZip::compressDirFiles(output, m_instance->instanceRoot(), files, true)) { QMessageBox::warning(this, tr("Error"), tr("Unable to export instance")); return false; |