adding merged sorted zip

This commit is contained in:
snus xD
2025-08-21 20:33:28 +03:00
parent 189aacda1a
commit ce6d3c4e17
6 changed files with 122 additions and 82 deletions

View File

@@ -1,4 +1,5 @@
import fs from "node:fs";
import { spawn } from "child_process";
const SPECIALS = ["sp", "spm"];
const DATA = JSON.parse(fs.readFileSync("./data.json", "utf-8"));
@@ -19,8 +20,6 @@ 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;
@@ -141,3 +140,11 @@ if (UNIQUES_NAMES != undefined) {
);
}
}
for (const chapter of chapters) {
spawn("python3", [
"merge.py",
`../_sprites/sorted/${chapter}`,
`../_sprites/sorted-merged/${chapter}`,
]);
}