aboutsummaryrefslogtreecommitdiff
path: root/launcher/FileSystem.cpp
diff options
context:
space:
mode:
authorflow <flowlnlnln@gmail.com>2022-08-28 15:36:01 -0300
committerflow <flowlnlnln@gmail.com>2022-08-28 16:28:23 -0300
commit3f4e55be4f0ec3bae295ed53e50e493f4bc72033 (patch)
tree7530a592d420d483783aca26cc17b4adb5a7d259 /launcher/FileSystem.cpp
parent9171f471abc4d61079a9fe2bda10801bded100e9 (diff)
downloadPrismLauncher-3f4e55be4f0ec3bae295ed53e50e493f4bc72033.tar.gz
PrismLauncher-3f4e55be4f0ec3bae295ed53e50e493f4bc72033.tar.bz2
PrismLauncher-3f4e55be4f0ec3bae295ed53e50e493f4bc72033.zip
fix: ensure destination file paths exist when overriding folders
Signed-off-by: flow <flowlnlnln@gmail.com>
Diffstat (limited to 'launcher/FileSystem.cpp')
-rw-r--r--launcher/FileSystem.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/launcher/FileSystem.cpp b/launcher/FileSystem.cpp
index 21edbb48..8eeb2885 100644
--- a/launcher/FileSystem.cpp
+++ b/launcher/FileSystem.cpp
@@ -467,6 +467,7 @@ bool overrideFolder(QString overwritten_path, QString override_path)
for (auto file : listFolderPaths(root_override)) {
QString destination = file;
destination.replace(override_path, overwritten_path);
+ ensureFilePathExists(destination);
qDebug() << QString("Applying override %1 in %2").arg(file, destination);