Add Non-Steam Game: Add Option to Find Artwork in EXE Directory #926
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.
Part of #906.
Overview
This PR adds a checkbox to the Add Non-Steam Game GUI which will look for artwork in the same folder as the game exe directory if it is named appropriately. If the user enables this option and DOES NOT select/pass any artwork (such as if they pass no artwork or if they only pass a banner image), we will search for artwork with a relevant name in the same folder as the game EXE.
This can be useful if you don't want to remember/enter long paths, or if your game already has
icon.png
or something along those lines in the game files, which is reasonably common. It's worth nothing as well that this option will respect the copy method option.We will look for the following:
icon
hero
logo
boxart
tenfoot
Any file format can be used as long as
files
sees that it is image data, however not all file formats may be recognised by Steam.This feature is also available as a commandline flag with
--auto-artwork
.Future Work
This is part of #906, so in future, this option can be used alongside an option to use SteamGridDB artwork, where there can be a fallback for any artwork that is not found (or if the call fails).
TODO: