mirror of
https://github.com/blitzkit/blitzkit.git
synced 2026-10-24 03:59:50 +02:00
feat: try appending dvpl?
This commit is contained in:
1 parent
2a4efa8cd2
commit
10b672572b
2 files changed
+6
-3
No files matched your search
@@ -1,5 +1,4 @@
|
|||||||
import { assertSecret } from '@blitzkit/core';
|
import { assertSecret } from '@blitzkit/core';
|
||||||
import { existsSync } from 'fs';
|
|
||||||
import { mkdir, writeFile } from 'fs/promises';
|
import { mkdir, writeFile } from 'fs/promises';
|
||||||
import { parse as parsePath } from 'path';
|
import { parse as parsePath } from 'path';
|
||||||
import ProgressBar from 'progress';
|
import ProgressBar from 'progress';
|
||||||
@@ -57,9 +56,12 @@ 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);
|
||||||
|
|
||||||
await writeFile(
|
await writeFile(
|
||||||
`${DATA}/${path}`,
|
`${DATA}/${path}${isDvpl ? '' : '.dvpl'}`,
|
||||||
new Uint8Array(writeDVPL(Buffer.from(data))),
|
new Uint8Array(isDvpl ? buffer : writeDVPL(buffer)),
|
||||||
);
|
);
|
||||||
|
|
||||||
bar.tick();
|
bar.tick();
|
||||||
|
|||||||
Submodule
+1
Submodule submodules/CUE4Parse added at 624e07c8c3.
Reference in new issue
Block a user