Use cross os separator for live2d assets path

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

View File

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