From 4716579b20845828e651e34b990a0b6e11be4213 Mon Sep 17 00:00:00 2001 From: xhacker-zzz <959220793@qq.com> Date: Thu, 24 Nov 2022 04:43:16 +0800 Subject: [PATCH] Update annotation & log output --- src/decrypt/qmccache.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/decrypt/qmccache.ts b/src/decrypt/qmccache.ts index 9d44b4c..9935ef1 100644 --- a/src/decrypt/qmccache.ts +++ b/src/decrypt/qmccache.ts @@ -22,12 +22,12 @@ export async function Decrypt(file: Blob, raw_filename: string, raw_ext: string) console.log('qmc: using wasm decoder'); const qmcDecrypted = await DecryptQmcWasm(buffer, raw_ext); - // 若 qmc 检测失败,降级到 v1 再尝试一次 + // 若 wasm 失败,降级到 js 再尝试一次 if (qmcDecrypted.success) { musicDecoded = qmcDecrypted.data; console.log('qmc wasm decoder suceeded'); } else { - console.warn('QmcWasm failed with error %s', qmcDecrypted.error || '(no error)'); + console.warn('QmcWasm failed with error %s', qmcDecrypted.error || '(unknown error)'); } }