This commit is contained in:
TrèsAbhi authored and GitHub committed 2026-06-23 10:07:54 -05:00
1 parent 3d35fae5ce
commit fc27caabdc
1 file changed
+4 -5
+4 -5
View File
@@ -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))),
); );
} }