diff --git a/packages/scripts/src/applyPatches.ts b/packages/scripts/src/applyPatches.ts index 42981dc75..e2b3d2641 100644 --- a/packages/scripts/src/applyPatches.ts +++ b/packages/scripts/src/applyPatches.ts @@ -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(); diff --git a/submodules/CUE4Parse b/submodules/CUE4Parse new file mode 160000 index 000000000..624e07c8c --- /dev/null +++ b/submodules/CUE4Parse @@ -0,0 +1 @@ +Subproject commit 624e07c8c396724b3ae72d4e1e2854fdc5269e24