fixed sp_ problem
This commit is contained in:
@@ -39,6 +39,15 @@ function add_animations(chapter, sprite_name) {
|
||||
`../_sprites/sorted/${chapter}/sp_${sprite_name}`,
|
||||
{ recursive: true, force: true }
|
||||
);
|
||||
|
||||
for (const file of fs.readdirSync(
|
||||
`../_sprites/sorted/${chapter}/sp_${sprite_name}`
|
||||
)) {
|
||||
const oldPath = `../_sprites/sorted/${chapter}/sp_${sprite_name}/${file}`;
|
||||
const newPath = `../_sprites/sorted/${chapter}/sp_${sprite_name}/sp_${file}`;
|
||||
|
||||
fs.renameSync(oldPath, newPath);
|
||||
}
|
||||
}
|
||||
|
||||
const sprite_frames = DATA[chapter][sprite_name];
|
||||
@@ -47,11 +56,6 @@ function add_animations(chapter, sprite_name) {
|
||||
if (!fs.existsSync(`../_sprites/translation/${sprite_name}/${img_name}`))
|
||||
continue;
|
||||
|
||||
fs.copyFileSync(
|
||||
`../_sprites/translation/${sprite_name}/${img_name}`,
|
||||
`../_sprites/sorted/${chapter}/${sprite_name}/${img_name}`
|
||||
);
|
||||
|
||||
if (
|
||||
fs.existsSync(`../_sprites/translation/sp_${sprite_name}/sp_${img_name}`)
|
||||
) {
|
||||
@@ -60,6 +64,11 @@ function add_animations(chapter, sprite_name) {
|
||||
`../_sprites/sorted/${chapter}/sp_${sprite_name}/sp_${img_name}`
|
||||
);
|
||||
}
|
||||
|
||||
fs.copyFileSync(
|
||||
`../_sprites/translation/${sprite_name}/${img_name}`,
|
||||
`../_sprites/sorted/${chapter}/${sprite_name}/${img_name}`
|
||||
);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user