diff --git a/packages/core/src/steam/vfs.ts b/packages/core/src/steam/vfs.ts index 88a1949db..ec024dad4 100644 --- a/packages/core/src/steam/vfs.ts +++ b/packages/core/src/steam/vfs.ts @@ -1,4 +1,5 @@ import { XMLParser } from "fast-xml-parser"; +import { normalize } from "path/posix"; import SteamUser, { EConnectionProtocol } from "steam-user"; import { parse } from "yaml"; import { readDVPL } from "../blitz"; @@ -81,11 +82,12 @@ export class SteamVFS { } has(path: string) { - const dvplPath = `${path}.dvpl`; + const normalized = normalize(path); + const dvplPath = `${normalized}.dvpl`; return ( (this.manifest.has(dvplPath) && dvplPath) || - (this.manifest.has(path) && path) + (this.manifest.has(normalized) && normalized) ); } diff --git a/packages/scripts/src/buildAssets/definitions.ts b/packages/scripts/src/buildAssets/definitions.ts index 06cfe7466..fc669459f 100644 --- a/packages/scripts/src/buildAssets/definitions.ts +++ b/packages/scripts/src/buildAssets/definitions.ts @@ -577,7 +577,7 @@ export async function definitions() { .then((response) => response.text()) .then((string) => parseYaml(string) as BlitzStrings); const preInstalled = await vfs.yaml( - 'Data/Strings/${blitzLocale}.yaml' + `Data/Strings/${blitzLocale}.yaml` ); stringsI18n[locale] = { diff --git a/packages/scripts/src/core/blitz/readTexture/index.ts b/packages/scripts/src/core/blitz/readTexture/index.ts index 484889a61..4d45f6605 100644 --- a/packages/scripts/src/core/blitz/readTexture/index.ts +++ b/packages/scripts/src/core/blitz/readTexture/index.ts @@ -7,11 +7,11 @@ export async function readTexture(path: string) { const resolvedTexturePath = isDds ? ddsTexturePath : ddsTexturePath.replace(".dds", ".pvr"); - const decompressedDvpl = await vfs.file(`${resolvedTexturePath}.dvpl`); + const file = await vfs.file(resolvedTexturePath); const raw = isDds - ? await new DdsReadStream(decompressedDvpl.buffer as ArrayBuffer).dds() - : new PvrReadStream(decompressedDvpl.buffer as ArrayBuffer).pvr(); + ? await new DdsReadStream(file.buffer as ArrayBuffer).dds() + : new PvrReadStream(file.buffer as ArrayBuffer).pvr(); return raw; } diff --git a/packages/scripts/src/core/github/assetUploader.ts b/packages/scripts/src/core/github/assetUploader.ts index ce24de2e3..0a064e25e 100644 --- a/packages/scripts/src/core/github/assetUploader.ts +++ b/packages/scripts/src/core/github/assetUploader.ts @@ -99,7 +99,7 @@ export class AssetUploader { } if (diff.status === DiffStatus.Unchanged) { - // console.log(`🔵 ${change.path}`); + console.log(`🔵 ${change.path}`); } else { console.log( `${diff.status === DiffStatus.New ? "🟢" : "🟡"} (${