aboutsummaryrefslogtreecommitdiff
path: root/launcher/modplatform/modrinth/ModrinthPackExportTask.cpp
diff options
context:
space:
mode:
authorTheKodeToad <TheKodeToad@proton.me>2023-03-19 21:25:12 +0000
committerTheKodeToad <TheKodeToad@proton.me>2023-03-19 21:25:12 +0000
commit710156b9f1b9555cd7e5562c8673074f80457d92 (patch)
treeba180b208aeafccd01b5250690935d0398ccc748 /launcher/modplatform/modrinth/ModrinthPackExportTask.cpp
parentec8cb056bf717edb97bf3e65fbad0ffc1b78ec34 (diff)
downloadPrismLauncher-710156b9f1b9555cd7e5562c8673074f80457d92.tar.gz
PrismLauncher-710156b9f1b9555cd7e5562c8673074f80457d92.tar.bz2
PrismLauncher-710156b9f1b9555cd7e5562c8673074f80457d92.zip
Replace native file separator - this was accidentally brought to my attention on Modrinth's guild
Signed-off-by: TheKodeToad <TheKodeToad@proton.me>
Diffstat (limited to 'launcher/modplatform/modrinth/ModrinthPackExportTask.cpp')
-rw-r--r--launcher/modplatform/modrinth/ModrinthPackExportTask.cpp4
1 files changed, 3 insertions, 1 deletions
diff --git a/launcher/modplatform/modrinth/ModrinthPackExportTask.cpp b/launcher/modplatform/modrinth/ModrinthPackExportTask.cpp
index cfd751d5..f86f1ad1 100644
--- a/launcher/modplatform/modrinth/ModrinthPackExportTask.cpp
+++ b/launcher/modplatform/modrinth/ModrinthPackExportTask.cpp
@@ -237,7 +237,9 @@ QByteArray ModrinthPackExportTask::generateIndex()
const ResolvedFile& value = iterator.value();
QJsonObject file;
- file["path"] = iterator.key();
+ QString path = iterator.key();
+ path.replace(QDir::separator(), "/");
+ file["path"] = path;
file["downloads"] = QJsonArray({ iterator.value().url });
QJsonObject hashes;