normalize path of live2d assets

This commit is contained in:
Tony Ribeiro 2023-11-12 19:21:01 +01:00
parent e7e4f75c86
commit c5ea3cfce7
1 changed files with 1 additions and 1 deletions

View File

@ -93,7 +93,7 @@ function registerEndpoints(app, jsonParser) {
const files = getFiles(live2d_folder)
//console.debug("FILE FOUND:",files)
for (let file of files) {
file = path.normalize(file.replace('public\\', ''));
file = path.normalize(file.replace(path.normalize('public\\'), ''));
if (file.endsWith("model3.json")) {
//console.debug("Asset live2d model found:",file)
output[folder].push(path.normalize(path.join(file)));