look for bgm paths in resource folders
This commit is contained in:
parent
a1e53ad85c
commit
285181d23b
|
@ -169,6 +169,8 @@ class Audio(Animation):
|
|||
volume = float(member)
|
||||
self.set_bgm(path, name, volume=volume)
|
||||
for root in self.get_configuration("audio", "bgm-project-path"):
|
||||
# look for path in resource folders
|
||||
root = self.get_resource(root)
|
||||
if os.path.exists(root):
|
||||
print("checking {} for music".format(root))
|
||||
if os.path.isfile(root):
|
||||
|
|
Loading…
Reference in New Issue