mirror of
https://github.com/Xpl0itU/WiiUDownloader.git
synced 2025-05-21 02:35:28 -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)
|
time.Sleep(time.Millisecond * 10)
|
||||||
}
|
}
|
||||||
|
|
||||||
if err := <-errorChan; err != nil {
|
return <-errorChan
|
||||||
return err
|
|
||||||
}
|
|
||||||
|
|
||||||
return nil
|
|
||||||
}
|
}
|
||||||
|
|
||||||
func runDecryption(path string, errorChan chan<- error, deleteEncryptedContents bool) {
|
func runDecryption(path string, errorChan chan<- error, deleteEncryptedContents bool) {
|
||||||
|
defer close(progressChan)
|
||||||
argv := make([]*C.char, 2)
|
argv := make([]*C.char, 2)
|
||||||
argv[0] = C.CString("WiiUDownloader")
|
argv[0] = C.CString("WiiUDownloader")
|
||||||
argv[1] = C.CString(path)
|
argv[1] = C.CString(path)
|
||||||
|
@ -78,6 +75,5 @@ func runDecryption(path string, errorChan chan<- error, deleteEncryptedContents
|
||||||
doDeleteEncryptedContents(path)
|
doDeleteEncryptedContents(path)
|
||||||
}
|
}
|
||||||
|
|
||||||
close(progressChan) // Indicate the completion of the decryption process
|
|
||||||
errorChan <- nil
|
errorChan <- nil
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue