adding merged sorted zip
This commit is contained in:
@@ -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}`,
|
||||
]);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user