1
0
mirror of https://gitee.com/sui-feng-cb/AzurLaneAutoScript1 synced 2026-03-12 05:08:19 +08:00

Fix: Verify filename when adding new config

This commit is contained in:
hgjazhgj
2022-11-05 04:17:14 +08:00
parent 816f947deb
commit df74e0a98f
10 changed files with 31 additions and 26 deletions

View File

@@ -5,14 +5,11 @@ MOD_CONFIG_DICT = {}
def list_mod():
out = []
for item in MOD_DICT.items():
out.append(item)
return out
return list(MOD_DICT.items())
def get_dir_name(name):
return MOD_DICT[name]
return MOD_DICT.get(name)
def filepath_mod(name):