From 10b672572b8fc6336c801951caaddba88603a1db Mon Sep 17 00:00:00 2001 From: tresabhi <43380238+tresabhi@users.noreply.github.com> Date: Mon, 3 Mar 2025 16:15:58 -0600 Subject: [PATCH] feat: try appending dvpl? --- packages/scripts/src/applyPatches.ts | 8 +++++--- submodules/CUE4Parse | 1 + 2 files changed, 6 insertions(+), 3 deletions(-) create mode 160000 submodules/CUE4Parse 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