refactor: re-order decryption factory

This commit is contained in:
鲁树人 2024-09-14 20:54:35 +01:00
parent 8b628fd6ce
commit 486f1fe898

View File

@ -12,12 +12,7 @@ import { TransparentCrypto } from './transparent/transparent';
import { QingTingFM$Device } from './qtfm/qtfm_device'; import { QingTingFM$Device } from './qtfm/qtfm_device';
export const allCryptoFactories: CryptoFactory[] = [ export const allCryptoFactories: CryptoFactory[] = [
// Xiami (*.xm) /// File with fixed headers goes first.
XiamiCrypto.make,
// QMCv2 (*.mflac)
QMC2CryptoWithKey.make,
QMC2Crypto.make,
// NCM (*.ncm) // NCM (*.ncm)
NCMCrypto.make, NCMCrypto.make,
@ -28,6 +23,17 @@ export const allCryptoFactories: CryptoFactory[] = [
// KWMv1 (*.kwm) // KWMv1 (*.kwm)
KWMCrypto.make, KWMCrypto.make,
// Xiami (*.xm)
XiamiCrypto.make,
/// File with a fixed footer goes second
// QMCv2 (*.mflac)
QMC2CryptoWithKey.make,
QMC2Crypto.make,
/// File without an obvious header or footer goes last.
// Migu3D/Keyless (*.wav; *.m4a) // Migu3D/Keyless (*.wav; *.m4a)
MiguCrypto.make, MiguCrypto.make,