Skip to content

Commit fc6ce9e

Browse files
authored
Add files via upload
1 parent 2e9efe0 commit fc6ce9e

1 file changed

Lines changed: 11 additions & 5 deletions

File tree

ncmdump.py

Lines changed: 11 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,6 @@
66
import sys
77
from Crypto.Cipher import AES
88

9-
109
def dump(file_path):
1110
# hex to str
1211
core_key = binascii.a2b_hex("687A4852416D736F356B496E62617857")
@@ -75,7 +74,14 @@ def dump(file_path):
7574
return file_name
7675

7776

78-
if __name__ == '__main__':
79-
file_list = sys.argv[1:]
80-
for file in file_list:
81-
dump(file)
77+
if __name__ == "__main__":
78+
__list__ = sys.argv[1:]
79+
if ("--no-output" in __list__):
80+
del __list__[__list__.index("--no-output")]
81+
for file in __list__:
82+
dump(file)
83+
else:
84+
for file in __list__:
85+
print("正在转换 (" + str(__list__.index(file) + 1) + "/" + str(len(__list__)) + "): " + file)
86+
print("转换成功! 输出文件名为 " + dump(file))
87+
print("转换完成! 共转换 " + str(len(__list__)) + " 个文件")

0 commit comments

Comments
 (0)