Use proper path function for live2d asset of character folder

This commit is contained in:
Tony Ribeiro 2023-10-24 15:44:40 +02:00
parent 43dae79018
commit 2b40fc7e76

View File

@ -257,7 +257,7 @@ function registerEndpoints(app, jsonParser) {
for (let file of fs.readdirSync(live2dModelPath)) {
//console.debug("Character live2d model found:", file)
if (file.includes("model"))
output.push([`${modelFolder}`,`/characters/${name}/${category}/${modelFolder}/${file}`]);
output.push([`${modelFolder}`,path.join("characters", name, category, modelFolder, file) ]);
}
}
}