From 4530bbdcb9efd044bdefdc00c8a7d04bc1d21617 Mon Sep 17 00:00:00 2001 From: d0k3 Date: Fri, 16 Oct 2015 19:50:31 +0200 Subject: [PATCH] ncchinfo_(t)gen.py: fix seed crypto detection --- scripts/ncchinfo_gen.py | 2 ++ scripts/ncchinfo_tgen.py | 2 ++ 2 files changed, 4 insertions(+) diff --git a/scripts/ncchinfo_gen.py b/scripts/ncchinfo_gen.py index ef0324e..246cb17 100644 --- a/scripts/ncchinfo_gen.py +++ b/scripts/ncchinfo_gen.py @@ -175,6 +175,8 @@ def parseNCCH(fh, offs=0, idx=0, titleId='', standAlone=1): if usesSeedCrypto == 0x20: usesSeedCrypto = 1 print tab + 'Uses 9.x SEED crypto' + else: + usesSeedCrypto = 0 print '' diff --git a/scripts/ncchinfo_tgen.py b/scripts/ncchinfo_tgen.py index 4547a38..9e3f17f 100644 --- a/scripts/ncchinfo_tgen.py +++ b/scripts/ncchinfo_tgen.py @@ -175,6 +175,8 @@ def parseNCCH(fh, offs=0, idx=0, titleId='', standAlone=1): if usesSeedCrypto == 0x20: usesSeedCrypto = 1 print tab + 'Uses 9.x SEED crypto' + else: + usesSeedCrypto = 0 print ''