mirror of
				https://git.unlock-music.dev/um/web.git
				synced 2025-11-04 09:33:30 +08:00 
			
		
		
		
	Fix Kgm Decrypt Bug
This commit is contained in:
		
							parent
							
								
									a558dac34b
								
							
						
					
					
						commit
						df2d409351
					
				@ -12,11 +12,14 @@ const VprMaskDiff = [0x25, 0xDF, 0xE8, 0xA6, 0x75, 0x1E, 0x75, 0x0E,
 | 
			
		||||
    0x00]
 | 
			
		||||
 | 
			
		||||
export async function Decrypt(file, raw_filename, raw_ext) {
 | 
			
		||||
    if (window.location.protocol === "file:") {
 | 
			
		||||
        return {
 | 
			
		||||
            status: false,
 | 
			
		||||
            message: "请使用<a target='_blank' href='https://github.com/ix64/unlock-music/wiki/其他音乐格式工具'>CLI版本</a>进行解锁"
 | 
			
		||||
    try {
 | 
			
		||||
        if (window.location.protocol === "file:") {
 | 
			
		||||
            return {
 | 
			
		||||
                status: false,
 | 
			
		||||
                message: "请使用<a target='_blank' href='https://github.com/ix64/unlock-music/wiki/其他音乐格式工具'>CLI版本</a>进行解锁"
 | 
			
		||||
            }
 | 
			
		||||
        }
 | 
			
		||||
    } catch {
 | 
			
		||||
    }
 | 
			
		||||
    const oriData = new Uint8Array(await GetArrayBuffer(file));
 | 
			
		||||
    if (raw_ext === "vpr") {
 | 
			
		||||
 | 
			
		||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user