Add on-demand decryption

This commit is contained in:
Xpl0itU 2023-07-19 12:55:52 +02:00
parent 1d7d850674
commit 20098cdb2e
3 changed files with 31 additions and 2 deletions

View file

@ -242,7 +242,7 @@ func DownloadTitle(titleID string, outputDirectory string, doDecryption bool, pr
}
if doDecryption && !progressWindow.cancelled {
if err := decryptContents(outputDir, progressWindow, deleteEncryptedContents); err != nil {
if err := DecryptContents(outputDir, progressWindow, deleteEncryptedContents); err != nil {
return err
}
}