Browse Source

Fix #84

20230320
MengYX 4 years ago
parent
commit
b6757e81a2
No known key found for this signature in database GPG Key ID: E63F9C7303E8F604
  1. 2
      src/decrypt/xm.js

2
src/decrypt/xm.js

@ -29,7 +29,7 @@ export async function Decrypt(file, raw_filename, raw_ext) {
} }
let key = oriData[0xf] let key = oriData[0xf]
let dataOffset = oriData[0xc] | oriData[0xd] << 8 let dataOffset = oriData[0xc] | oriData[0xd] << 8 | oriData[0xe] << 16
let audioData = oriData.slice(0x10); let audioData = oriData.slice(0x10);
let lenAudioData = audioData.length; let lenAudioData = audioData.length;
for (let cur = dataOffset; cur < lenAudioData; ++cur) for (let cur = dataOffset; cur < lenAudioData; ++cur)

Loading…
Cancel
Save