mirror of
https://github.com/SillyTavern/SillyTavern.git
synced 2025-06-05 21:59:27 +02:00
Use cross os separator for live2d assets path
This commit is contained in:
@ -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)));
|
||||||
|
Reference in New Issue
Block a user