Xpl0itU / WiiUDownloader

Allows to download encrypted wiiu files from nintendo's official servers
GNU General Public License v3.0
880 stars 24 forks source link

Quick but important fixes #31

Closed ttuleyb closed 1 year ago

ttuleyb commented 1 year ago

This pull fixes two bugs I've had on my Mac;

1) Delete encrypted contents after decryption simply deleted the entire folder.

2) Sometimes the decrypt checkbox was checked but didn't result in automatic decryption after the files were downloaded

I've fixed both of these issues by changing how the checkboxes change variables and then changing the removeFiles method to work on MacOS aswell. Turns out entry.is_regular_file() recognises symbolic links as non regular files while folders are recognised as regular files on MacOS, resulting in everything being deleted.

Please keep in mind that this is my first time writing C++ code 😄