feat: try appending dvpl?

This commit is contained in:
tresabhi committed 2025-03-03 16:15:58 -06:00
1 parent 2a4efa8cd2
commit 10b672572b
2 files changed
+6 -3

No files matched your search

+5 -3
View File
@@ -1,5 +1,4 @@
import { assertSecret } from '@blitzkit/core';
import { existsSync } from 'fs';
import { mkdir, writeFile } from 'fs/promises';
import { parse as parsePath } from 'path';
import ProgressBar from 'progress';
@@ -57,9 +56,12 @@ while (true) {
console.warn(`Failed to make directory "${dir}"`);
}
const isDvpl = path.endsWith('.dvpl');
const buffer = Buffer.from(data);
await writeFile(
`${DATA}/${path}`,
new Uint8Array(writeDVPL(Buffer.from(data))),
`${DATA}/${path}${isDvpl ? '' : '.dvpl'}`,
new Uint8Array(isDvpl ? buffer : writeDVPL(buffer)),
);
bar.tick();
Submodule submodules/CUE4Parse added at 624e07c8c3.