mirror of
https://github.com/blitzkit/blitzkit.git
synced 2026-10-21 18:57:03 +02:00
fix: path normalization
This commit is contained in:
1 parent
9cb1d0cb3f
commit
d633874d90
4 files changed
+9
-7
No files matched your search
@@ -577,7 +577,7 @@ export async function definitions() {
|
||||
.then((response) => response.text())
|
||||
.then((string) => parseYaml(string) as BlitzStrings);
|
||||
const preInstalled = await vfs.yaml<BlitzStrings>(
|
||||
'Data/Strings/${blitzLocale}.yaml'
|
||||
`Data/Strings/${blitzLocale}.yaml`
|
||||
);
|
||||
|
||||
stringsI18n[locale] = {
|
||||
|
||||
@@ -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;
|
||||
}
|
||||
@@ -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 ? "🟢" : "🟡"} (${
|
||||
|
||||
Reference in new issue
Block a user