UI: Allow installing texture packs from zips #12175
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.
Related, this also allows using region-specific texture ini content.
There's no UI to select a game ID to install for. So the best instructions to give users would be:
My theory is that most users will only have one region anyway. The multi-region use case probably means a user who will be able to figure out unzipping it themselves. Otherwise, their preferred recent is likely to be the most recent region they have played.
For texture pack authors, all you need to do is add the following to textures.ini:
If you use something other than "textures.ini", it will load that file in addition to textures.ini. It uses exactly the same format. Make sure the filename is lowercase so it works on all platforms.
Fixes #11737.
-[Unknown]