LttP: remove sprite download from setup flow & make sprite repo dynamic (#4830)

This commit is contained in:
Fabian Dill
2025-08-02 01:26:50 +02:00
committed by GitHub
parent 9ad6959559
commit 9edd55961f
6 changed files with 39 additions and 30 deletions

View File

@@ -515,7 +515,8 @@ def _populate_sprite_table():
logging.debug(f"Spritefile {file} could not be loaded as a valid sprite.")
with concurrent.futures.ThreadPoolExecutor() as pool:
sprite_paths = [user_path('data', 'sprites', 'alttpr'), user_path('data', 'sprites', 'custom')]
sprite_paths = [user_path("data", "sprites", "alttp", "remote"),
user_path("data", "sprites", "alttp", "custom")]
for dir in [dir for dir in sprite_paths if os.path.isdir(dir)]:
for file in os.listdir(dir):
pool.submit(load_sprite_from_file, os.path.join(dir, file))