Check local files for custom boxart/sound. #50
Merged
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Hi,
I have added in a few features for the generator.py. This is the first of a few smaller pull requests and adds the ability to use local files if they are available. This would streamline creating and testing new banners but may be less useful for the regular user as described in #27. There is currently no user prompt, since I would imagine that if a user actually uses local assets, they know what they are doing and don't want to be asked if they really want to use local files.
The general way assets are chosen is the same as with the downloads from Github. Missing files still get downloaded.
The folder that gets checked is called "assets" and currently has to be in the same directory as the generator.exe file. I thought about having it a level up but since you only use the generator folder on windows and not bootstrap or forwarder, I feel like this is more straightforward.
There are also two small other changes in here: