We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 2e9efe0 commit fc6ce9eCopy full SHA for fc6ce9e
1 file changed
ncmdump.py
@@ -6,7 +6,6 @@
6
import sys
7
from Crypto.Cipher import AES
8
9
-
10
def dump(file_path):
11
# hex to str
12
core_key = binascii.a2b_hex("687A4852416D736F356B496E62617857")
@@ -75,7 +74,14 @@ def dump(file_path):
75
74
return file_name
76
77
78
-if __name__ == '__main__':
79
- file_list = sys.argv[1:]
80
- for file in file_list:
81
- dump(file)
+if __name__ == "__main__":
+ __list__ = sys.argv[1:]
+ if ("--no-output" in __list__):
+ del __list__[__list__.index("--no-output")]
+ for file in __list__:
82
+ dump(file)
83
+ else:
84
85
+ print("正在转换 (" + str(__list__.index(file) + 1) + "/" + str(len(__list__)) + "): " + file)
86
+ print("转换成功! 输出文件名为 " + dump(file))
87
+ print("转换完成! 共转换 " + str(len(__list__)) + " 个文件")
0 commit comments