optimize sweep_for_events, some has_ functions and some minor things

This commit is contained in:
Fabian Dill
2020-08-22 19:19:29 +02:00
parent cac5795e01
commit b5048d99b9
5 changed files with 36 additions and 34 deletions

2
Rom.py
View File

@@ -348,6 +348,8 @@ def _populate_sprite_table():
if sprite.valid:
_sprite_table[sprite.name.lower()] = sprite
_sprite_table[os.path.basename(file).split(".")[0].lower()] = sprite # alias for filename base
else:
logging.debug(f"Spritefile {file} could not be loaded as a valid sprite.")
with concurrent.futures.ThreadPoolExecutor() as pool:
for dir in [local_path('data/sprites/alttpr'), local_path('data/sprites/custom')]: