Update index.ts

This commit is contained in:
TrèsAbhi authored and GitHub committed 2025-01-24 11:27:45 -06:00
1 parent 438b565cbb
commit c0895409bc
1 file changed
+1 -1
@@ -6,7 +6,7 @@ import { TextureMutation } from './constants';
export async function readTexture(path: string, mutation?: TextureMutation) {
const ddsTexturePath = path.replace('.tex', '.dx11.dds');
const isDds = existsSync(ddsTexturePath);
const isDds = existsSync(`${ddsTexturePath}.dvpl`);
const resolvedTexturePath = isDds
? ddsTexturePath
: ddsTexturePath.replace('.dds', '.pvr');