move the statement to stop processing a mod earlier so we avoid wasteful screenshot cleanup.
This commit is contained in:
parent
0868c1e899
commit
5153207ed2
|
@ -441,9 +441,15 @@ init -999 python:
|
|||
mod_screenshots[lang_code] = []
|
||||
mod_screenshots[lang_code].append((i, converted_number))
|
||||
|
||||
# Refine collected screenshots so that translated screenshots use the english screenshots (the ones without a lang code)
|
||||
# as a base, and then either replacing or adding the translated screenshots according to their number.
|
||||
|
||||
# Don't load the mod if there's mod breaking errors
|
||||
if mod_exception:
|
||||
continue
|
||||
|
||||
# We're now gonna clean up the screenshots to be more usable as-is.
|
||||
|
||||
# Refine collected screenshots so that translated screenshots use the english screenshots (the ones without a lang code)
|
||||
# as a base, and then either replacing or adding the translated screenshots according to their order/number.
|
||||
for lang_key in mod_screenshots.keys():
|
||||
if lang_key != "None":
|
||||
if mod_screenshots.get("None") == None:
|
||||
|
@ -496,11 +502,6 @@ init -999 python:
|
|||
else:
|
||||
mod_data_final[lang_key]["Screenshot Displayables"] = None
|
||||
|
||||
|
||||
# Don't load the mod if there's mod breaking errors
|
||||
if mod_exception:
|
||||
continue
|
||||
|
||||
# Store the collected scripts and screenshots
|
||||
mod_data_final["Scripts"] = mod_scripts
|
||||
|
||||
|
|
Loading…
Reference in New Issue