use qt separtor for file path

Signed-off-by: Trial97 <alexandru.tripon97@gmail.com>
This commit is contained in:
Trial97 2023-08-24 12:41:37 +03:00
parent f7951f6082
commit ea384d59fb
No known key found for this signature in database
GPG Key ID: 55EF5DA53DB36318

View File

@ -322,7 +322,7 @@ bool ModrinthCreationTask::parseManifest(const QString& index_path,
bool had_optional = false;
for (const auto& modInfo : jsonFiles) {
Modrinth::File file;
file.path = Json::requireString(modInfo, "path");
file.path = Json::requireString(modInfo, "path").replace("\\", "/");
auto env = Json::ensureObject(modInfo, "env");
// 'env' field is optional