From f082420fc777aa5327677bbb142e714dde4a250c Mon Sep 17 00:00:00 2001 From: Tony Ribeiro Date: Sun, 12 Nov 2023 19:25:13 +0100 Subject: [PATCH] Use cross os separator for live2d assets path --- src/assets.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/assets.js b/src/assets.js index 059fa804c..0087d3a62 100644 --- a/src/assets.js +++ b/src/assets.js @@ -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(path.normalize('public\\'), '')); + file = path.normalize(file.replace('public'+path.sep, '')); if (file.endsWith("model3.json")) { //console.debug("Asset live2d model found:",file) output[folder].push(path.normalize(path.join(file)));