Skip to content

Commit

Permalink
Merge pull request #20 from Diaoxiaozhang:develop
Browse files Browse the repository at this point in the history
debug
  • Loading branch information
Diaoxiaozhang committed Mar 26, 2024
2 parents 2dc0aa3 + eab6cb8 commit db4d01d
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions main.py
Original file line number Diff line number Diff line change
Expand Up @@ -196,15 +196,24 @@ def select_directory():
if choice == "1" or choice == "2":
if choice == "1":
files_to_decrypt = [select_file()]
if files_to_decrypt == [""]:
print("检测到文件选择窗口被关闭")
continue
elif choice == "2":
dir_to_decrypt = select_directory()
if dir_to_decrypt == "":
print("检测到目录选择窗口被关闭")
continue
files_to_decrypt = glob.glob(os.path.join(dir_to_decrypt, "*.xm"))
print("请选择是否需要设置输出路径:(不设置默认为本程序目录下的output文件夹)")
print("1. 设置输出路径")
print("2. 不设置输出路径")
choice = input()
if choice == "1":
output_path = select_directory()
if output_path == "":
print("检测到目录选择窗口被关闭")
continue
elif choice == "2":
output_path = ""
for file in files_to_decrypt:
Expand Down

0 comments on commit db4d01d

Please sign in to comment.