Replace native file separator - this was accidentally brought to my attention on Modrinth's guild

Signed-off-by: TheKodeToad <TheKodeToad@proton.me>
This commit is contained in:
TheKodeToad 2023-03-19 21:25:12 +00:00
parent ec8cb056bf
commit 710156b9f1

View File

@ -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;