added uniques support for unreadys
This commit is contained in:
@@ -19,6 +19,8 @@ UNIQUES_FRAMES?.shift();
|
||||
while (UNIQUES_NAMES?.at(-1) == "") UNIQUES_NAMES?.pop();
|
||||
while (UNIQUES_FRAMES?.at(-1) == "") UNIQUES_FRAMES?.pop();
|
||||
|
||||
export const SHARED = UNIQUES_FRAMES;
|
||||
|
||||
function add_singles(chapter, sprite_name) {
|
||||
const img_name = `${sprite_name}.png`;
|
||||
if (!fs.existsSync(`../_sprites/translation/${img_name}`)) return;
|
||||
@@ -133,4 +135,4 @@ if (UNIQUES_NAMES != undefined) {
|
||||
}
|
||||
}
|
||||
|
||||
// :P
|
||||
// :P
|
||||
|
||||
@@ -1,4 +1,5 @@
|
||||
import fs from "node:fs";
|
||||
import { SHARED } from "./sort";
|
||||
|
||||
const CHAPTERS = JSON.parse(fs.readFileSync("./data.json", "utf-8"));
|
||||
|
||||
@@ -31,8 +32,9 @@ for (const sprite of TRANSLATED) {
|
||||
} else {
|
||||
if (
|
||||
fs.existsSync(`../_sprites/unready/${sprite}`) &&
|
||||
fs.readdirSync(`../_sprites/unready/${sprite}`).length ==
|
||||
fs.readdirSync(`../_sprites/translation/${sprite}`).length
|
||||
(SHARED.includes(sprite) ||
|
||||
fs.readdirSync(`../_sprites/unready/${sprite}`).length ==
|
||||
fs.readdirSync(`../_sprites/translation/${sprite}`).length)
|
||||
)
|
||||
fs.rmSync(`../_sprites/unready/${sprite}`, {
|
||||
recursive: true,
|
||||
|
||||
Reference in New Issue
Block a user