mirror of
https://github.com/SillyTavern/SillyTavern.git
synced 2025-02-23 15:37:50 +01:00
Use proper path function for live2d asset of character folder
This commit is contained in:
parent
43dae79018
commit
2b40fc7e76
@ -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) ]);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user