Skip to content

Commit

Permalink
Add a notion of data pack dirs.
Browse files Browse the repository at this point in the history
  • Loading branch information
porridge committed Sep 5, 2023
1 parent b424ce8 commit c02f8cc
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions bambam.py
Original file line number Diff line number Diff line change
Expand Up @@ -163,6 +163,7 @@ def load_items(cls, lst, blacklist, load_function, failure_message):

def __init__(self):
self.data_dirs = []
self.data_pack_dirs = []

self.background_color = None
self.background = None
Expand Down Expand Up @@ -402,6 +403,11 @@ def _add_base_dir(self, base_dir):
print(_('Using data directory %s') % data_subdir)
self.data_dirs.append(data_subdir)

data_packs_subdir = os.path.join(base_dir, 'data-packs')
if os.path.isdir(data_packs_subdir):
print(_('Using data packs directory %s') % data_packs_subdir)
self.data_pack_dirs.append(data_packs_subdir)

def run(self):
"""
Main application entry point.
Expand Down

0 comments on commit c02f8cc

Please sign in to comment.