Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update ChoiDujour.py #12

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions ChoiDujour.py
Original file line number Diff line number Diff line change
Expand Up @@ -222,7 +222,7 @@ def call_hactool(moreArgs):
raise Exception(err_msg)

elif len(std_err):
raise Exception(std_err)


return std_out

Expand Down Expand Up @@ -514,7 +514,7 @@ def getContents(self):
print('file ' + currFile + ' not a NCA, skipping')
continue

ncaInfoLines = call_hactool(["-i", "--intype=nca", currFile]).splitlines()

ncaId = get_sha256_file_digest(currFile)
ncaId = ncaId[:len(ncaId)/2]

Expand Down Expand Up @@ -830,4 +830,4 @@ def getContents(self):
print('All files verified! Prepared firmware update is in folder ' + os.getcwd())
finally:
if tempDirName != '':
shutil.rmtree(tempDirName, ignore_errors=True)
shutil.rmtree(tempDirName, ignore_errors=True)