mirror of
https://github.com/blitzkit/blitzkit.git
synced 2026-10-23 19:49:50 +02:00
dvpl
This commit is contained in:
1 parent
3d35fae5ce
commit
fc27caabdc
1 file changed
+4
-5
@@ -54,12 +54,11 @@ while (true) {
|
|||||||
console.warn(`Failed to make directory "${dir}"`);
|
console.warn(`Failed to make directory "${dir}"`);
|
||||||
}
|
}
|
||||||
|
|
||||||
const isDvpl = path.endsWith(".dvpl");
|
|
||||||
const buffer = Buffer.from(data);
|
const buffer = Buffer.from(data);
|
||||||
|
|
||||||
await writeFile(
|
await writeFile(
|
||||||
`${PATCHES_ROOT}/Data/${path}${isDvpl ? "" : ".dvpl"}`,
|
`${PATCHES_ROOT}/Data/${path}`,
|
||||||
new Uint8Array(isDvpl ? buffer : writeDVPL(buffer)),
|
new Uint8Array(buffer),
|
||||||
);
|
);
|
||||||
|
|
||||||
bar.tick();
|
bar.tick();
|
||||||
@@ -79,8 +78,8 @@ while (true) {
|
|||||||
|
|
||||||
await mkdir(`${PATCHES_ROOT}/Data/Strings`, { recursive: true });
|
await mkdir(`${PATCHES_ROOT}/Data/Strings`, { recursive: true });
|
||||||
await writeFile(
|
await writeFile(
|
||||||
`${PATCHES_ROOT}/Data/Strings/en.yaml.dvpl`,
|
`${PATCHES_ROOT}/Data/Strings/en.yaml`,
|
||||||
new Uint8Array(writeDVPL(Buffer.from(patchedContent))),
|
new Uint8Array((Buffer.from(patchedContent))),
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in new issue
Block a user