mirror of
https://github.com/Xpl0itU/WiiUDownloader.git
synced 2025-05-12 22:26:15 -04:00
Decryption improvements
This commit is contained in:
parent
38e6be51c9
commit
950094561c
1 changed files with 2 additions and 6 deletions
|
@ -52,14 +52,11 @@ func DecryptContents(path string, progress *ProgressWindow, deleteEncryptedConte
|
|||
time.Sleep(time.Millisecond * 10)
|
||||
}
|
||||
|
||||
if err := <-errorChan; err != nil {
|
||||
return err
|
||||
}
|
||||
|
||||
return nil
|
||||
return <-errorChan
|
||||
}
|
||||
|
||||
func runDecryption(path string, errorChan chan<- error, deleteEncryptedContents bool) {
|
||||
defer close(progressChan)
|
||||
argv := make([]*C.char, 2)
|
||||
argv[0] = C.CString("WiiUDownloader")
|
||||
argv[1] = C.CString(path)
|
||||
|
@ -78,6 +75,5 @@ func runDecryption(path string, errorChan chan<- error, deleteEncryptedContents
|
|||
doDeleteEncryptedContents(path)
|
||||
}
|
||||
|
||||
close(progressChan) // Indicate the completion of the decryption process
|
||||
errorChan <- nil
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue