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:
parent
ec8cb056bf
commit
710156b9f1
1 changed files with 3 additions and 1 deletions
|
@ -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;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue