Skip to content

Commit

Permalink
aux entries refactor/cleaning
Browse files Browse the repository at this point in the history
Hendrix forced me to do this :P
  • Loading branch information
ilodev committed Nov 28, 2024
1 parent 422f347 commit b7a27af
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions generated/formats/ovl/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -1111,10 +1111,10 @@ def rebuild_ovl_arrays(self):
mimes_name = [self.get_mime(ext, "name") for ext in mimes_ext]
# clear ovl lists
loaders_with_deps = [loader for loader in self.loaders.values() if loader.dependencies]
loaders_with_aux = [loader for loader in self.loaders.values() if loader.aux_entries]
loaders_with_aux = [loader for loader in self.loaders.values() if loader.aux_data]
# flat list of all dependencies
loaders_and_deps = [((dep, ptr), loader) for loader in loaders_with_deps for dep, ptr in loader.dependencies]
loaders_and_aux = [(aux_suffix, loader) for loader in loaders_with_aux for aux_suffix in loader.aux_entries]
loaders_and_aux = [(aux_suffix, loader) for loader in loaders_with_aux for aux_suffix in loader.aux_data]
ovl_includes = sorted(set(self.included_ovl_names))
ovl_includes = [ovl_path.replace(".ovl", "") for ovl_path in ovl_includes]

Expand Down
4 changes: 2 additions & 2 deletions source/formats/ovl/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -1110,10 +1110,10 @@ def rebuild_ovl_arrays(self):
mimes_name = [self.get_mime(ext, "name") for ext in mimes_ext]
# clear ovl lists
loaders_with_deps = [loader for loader in self.loaders.values() if loader.dependencies]
loaders_with_aux = [loader for loader in self.loaders.values() if loader.aux_entries]
loaders_with_aux = [loader for loader in self.loaders.values() if loader.aux_data]
# flat list of all dependencies
loaders_and_deps = [((dep, ptr), loader) for loader in loaders_with_deps for dep, ptr in loader.dependencies]
loaders_and_aux = [(aux_suffix, loader) for loader in loaders_with_aux for aux_suffix in loader.aux_entries]
loaders_and_aux = [(aux_suffix, loader) for loader in loaders_with_aux for aux_suffix in loader.aux_data]
ovl_includes = sorted(set(self.included_ovl_names))
ovl_includes = [ovl_path.replace(".ovl", "") for ovl_path in ovl_includes]

Expand Down

0 comments on commit b7a27af

Please sign in to comment.