proper scene folder discovery
This commit is contained in:
parent
c87c517217
commit
4046e757ef
7 changed files with 94 additions and 31 deletions
|
|
@ -30,7 +30,11 @@ def update_names(dir_in, old_path, languages):
|
|||
langfile, "w", newline="\n"
|
||||
) as lang_file: # you're using git right
|
||||
json.dump(
|
||||
out_dict, lang_file, ensure_ascii=False, indent="\t", sort_keys=True
|
||||
out_dict,
|
||||
lang_file,
|
||||
ensure_ascii=False,
|
||||
indent="\t",
|
||||
sort_keys=True,
|
||||
)
|
||||
|
||||
|
||||
|
|
@ -97,6 +101,8 @@ def read_mission(tsv_path, char_names, char_sets):
|
|||
if row["Command"] and row["Command"].startswith("//"):
|
||||
continue
|
||||
if row["Text"] and row["Arg1"]:
|
||||
if (row["Arg1"] not in char_names) and (row["Arg1"] not in char_sets):
|
||||
if (row["Arg1"] not in char_names) and (
|
||||
row["Arg1"] not in char_sets
|
||||
):
|
||||
new_names.add(row["Arg1"])
|
||||
return new_names
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue