Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add Non-Steam Game: Add Option to Find Artwork in EXE Directory #926

Merged
merged 5 commits into from
Oct 2, 2023

Conversation

sonic2kk
Copy link
Owner

@sonic2kk sonic2kk commented Oct 2, 2023

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.

image

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 - Image files named icon
  • Banner - Image files named hero
  • Logo - Image files named logo
  • Boxart - Image files named boxart
  • Tenfoot - Image files named 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:

  • More testing
  • Update langfiles
  • Update wiki

@sonic2kk
Copy link
Owner Author

sonic2kk commented Oct 2, 2023

Testing looks good. Wiki will be updated on merge.

@sonic2kk sonic2kk merged commit 99d4f10 into master Oct 2, 2023
@sonic2kk
Copy link
Owner Author

sonic2kk commented Oct 2, 2023

Shit, forgot to update the helpscreen. Will do that when implementing the next part of #906.

@sonic2kk sonic2kk linked an issue Oct 2, 2023 that may be closed by this pull request
@sonic2kk sonic2kk deleted the ansg-improved-artwork branch October 6, 2023 00:54
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

SteamGridDB support for Non-Steam games
1 participant